Record Class NuggetCliConnectionSecurity

java.lang.Object
java.lang.Record
org.j7m.middleware.deployer.cli.NuggetCliConnectionSecurity
Record Components:
locality - connection locality classification
confidentiality - confidentiality classification
peerAuthentication - peer authentication classification
integrity - integrity-protection classification
profile - safe transport security profile identifier
credentialSubmissionAllowed - 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.

  • Constructor Details

  • Method Details

    • trustedLocal

      public static NuggetCliConnectionSecurity trustedLocal()
      Returns a descriptor for an explicitly trusted local connector.
      Returns:
      trusted local connection security
    • secureRemote

      public static NuggetCliConnectionSecurity secureRemote(String profile)
      Returns a descriptor for a confidential authenticated remote connector.
      Parameters:
      profile - safe provider profile identifier
      Returns:
      secure remote connection security
    • insecure

      public static NuggetCliConnectionSecurity insecure()
      Returns a descriptor for an insecure or unknown connector.
      Returns:
      insecure connection security
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • locality

      Returns the value of the locality record component.
      Returns:
      the value of the locality record component
    • confidentiality

      Returns the value of the confidentiality record component.
      Returns:
      the value of the confidentiality record component
    • peerAuthentication

      Returns the value of the peerAuthentication record component.
      Returns:
      the value of the peerAuthentication record component
    • integrity

      Returns the value of the integrity record component.
      Returns:
      the value of the integrity record component
    • profile

      public String profile()
      Returns the value of the profile record component.
      Returns:
      the value of the profile record component
    • credentialSubmissionAllowed

      public boolean credentialSubmissionAllowed()
      Returns the value of the credentialSubmissionAllowed record component.
      Returns:
      the value of the credentialSubmissionAllowed record component