Record Class NuggetCliConnectionSecurity
java.lang.Object
java.lang.Record
org.j7m.middleware.deployer.cli.NuggetCliConnectionSecurity
- Record Components:
locality- connection locality classificationconfidentiality- confidentiality classificationpeerAuthentication- peer authentication classificationintegrity- integrity-protection classificationprofile- safe transport security profile identifiercredentialSubmissionAllowed- whether clear PIN submission is allowed by the provider under the active security policy
public record NuggetCliConnectionSecurity(NuggetCliConnectionSecurity.Locality locality, NuggetCliConnectionSecurity.Confidentiality confidentiality, NuggetCliConnectionSecurity.PeerAuthentication peerAuthentication, NuggetCliConnectionSecurity.Integrity integrity, String profile, boolean credentialSubmissionAllowed)
extends Record
Describes trusted security properties of an established nugget CLI
connection.
The descriptor is created by the installed client provider after it has established or otherwise resolved the actual connector. It is not derived from unauthenticated discovery metadata. The descriptor contains only safe classifications and never exposes certificates, keys, tokens, endpoints, transport handles, or implementation internals.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumConfidentiality state.static enumIntegrity protection state.static enumConnection locality.static enumPeer-authentication state. -
Constructor Summary
ConstructorsConstructorDescriptionNuggetCliConnectionSecurity(NuggetCliConnectionSecurity.Locality locality, NuggetCliConnectionSecurity.Confidentiality confidentiality, NuggetCliConnectionSecurity.PeerAuthentication peerAuthentication, NuggetCliConnectionSecurity.Integrity integrity, String profile, boolean credentialSubmissionAllowed) Creates a connection security descriptor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidentialityrecord component.booleanReturns the value of thecredentialSubmissionAllowedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static NuggetCliConnectionSecurityinsecure()Returns a descriptor for an insecure or unknown connector.Returns the value of theintegrityrecord component.locality()Returns the value of thelocalityrecord component.Returns the value of thepeerAuthenticationrecord component.profile()Returns the value of theprofilerecord component.static NuggetCliConnectionSecuritysecureRemote(String profile) Returns a descriptor for a confidential authenticated remote connector.final StringtoString()Returns a string representation of this record class.static NuggetCliConnectionSecurityReturns a descriptor for an explicitly trusted local connector.
-
Constructor Details
-
NuggetCliConnectionSecurity
public NuggetCliConnectionSecurity(NuggetCliConnectionSecurity.Locality locality, NuggetCliConnectionSecurity.Confidentiality confidentiality, NuggetCliConnectionSecurity.PeerAuthentication peerAuthentication, NuggetCliConnectionSecurity.Integrity integrity, String profile, boolean credentialSubmissionAllowed) Creates a connection security descriptor.- Parameters:
locality- connection localityconfidentiality- confidentiality statepeerAuthentication- peer authentication stateintegrity- integrity stateprofile- safe profile identifiercredentialSubmissionAllowed- whether PIN submission is allowed
-
-
Method Details
-
trustedLocal
Returns a descriptor for an explicitly trusted local connector.- Returns:
- trusted local connection security
-
secureRemote
Returns a descriptor for a confidential authenticated remote connector.- Parameters:
profile- safe provider profile identifier- Returns:
- secure remote connection security
-
insecure
Returns a descriptor for an insecure or unknown connector.- Returns:
- insecure connection security
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
locality
-
confidentiality
Returns the value of theconfidentialityrecord component.- Returns:
- the value of the
confidentialityrecord component
-
peerAuthentication
Returns the value of thepeerAuthenticationrecord component.- Returns:
- the value of the
peerAuthenticationrecord component
-
integrity
-
profile
-
credentialSubmissionAllowed
public boolean credentialSubmissionAllowed()Returns the value of thecredentialSubmissionAllowedrecord component.- Returns:
- the value of the
credentialSubmissionAllowedrecord component
-