Record Class PkiServerAuthenticationResult.Authenticated
java.lang.Object
java.lang.Record
zeroecho.pki.server.spi.PkiServerAuthenticationResult.Authenticated
- Record Components:
mode- administrative authentication topologytransportPrincipalId- trusted proxy principal in proxy modeendClientPrincipalId- authenticated end-client principalcredentialEvidence- trusted end-client evidence, absent for unsupported identity algorithms
- All Implemented Interfaces:
PkiServerAuthenticationResult
- Enclosing interface:
PkiServerAuthenticationResult
public static record PkiServerAuthenticationResult.Authenticated(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, String endClientPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence)
extends Record
implements PkiServerAuthenticationResult
Successfully resolved persisted principal identity.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PkiServerAuthenticationResult
PkiServerAuthenticationResult.Authenticated, PkiServerAuthenticationResult.Code, PkiServerAuthenticationResult.Rejected -
Constructor Summary
ConstructorsConstructorDescriptionAuthenticated(String principalId) Creates a direct-mTLS result for an existing certificate mapper.Authenticated(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, String endClientPrincipalId) Creates an authentication result without enrollment credential evidence.Authenticated(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, String endClientPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence) Validates the finite principal identity. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecredentialEvidencerecord component.Returns the value of theendClientPrincipalIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.mode()Returns the value of themoderecord component.toString()Returns a string representation of this record class.Returns the value of thetransportPrincipalIdrecord component.Methods inherited from interface PkiServerAuthenticationResult
resolvedPrincipalId
-
Constructor Details
-
Authenticated
public Authenticated(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, String endClientPrincipalId, Optional<CertificateIdentityEvidence> credentialEvidence) Validates the finite principal identity. -
Authenticated
Creates a direct-mTLS result for an existing certificate mapper.- Parameters:
principalId- authenticated end-client principal
-
Authenticated
public Authenticated(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, String endClientPrincipalId) Creates an authentication result without enrollment credential evidence.- Parameters:
mode- authentication topologytransportPrincipalId- trusted proxy principal, when applicableendClientPrincipalId- authenticated end-client principal
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
mode
-
transportPrincipalId
Returns the value of thetransportPrincipalIdrecord component.- Returns:
- the value of the
transportPrincipalIdrecord component
-
endClientPrincipalId
Returns the value of theendClientPrincipalIdrecord component.- Returns:
- the value of the
endClientPrincipalIdrecord component
-
credentialEvidence
Returns the value of thecredentialEvidencerecord component.- Returns:
- the value of the
credentialEvidencerecord component
-