Record Class PkiServerAuthenticationResult.Rejected
java.lang.Object
java.lang.Record
zeroecho.pki.server.spi.PkiServerAuthenticationResult.Rejected
- Record Components:
mode- administrative authentication topologytransportPrincipalId- trusted proxy principal when resolvedendClientPrincipalId- end-client principal when safely resolvedcode- stable non-disclosing rejection code
- All Implemented Interfaces:
PkiServerAuthenticationResult
- Enclosing interface:
PkiServerAuthenticationResult
public static record PkiServerAuthenticationResult.Rejected(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, Optional<String> endClientPrincipalId, PkiServerAuthenticationResult.Code code)
extends Record
implements PkiServerAuthenticationResult
Authentication rejection containing only a stable safe code.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface PkiServerAuthenticationResult
PkiServerAuthenticationResult.Authenticated, PkiServerAuthenticationResult.Code, PkiServerAuthenticationResult.Rejected -
Constructor Summary
ConstructorsConstructorDescriptionRejected(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, Optional<String> endClientPrincipalId, PkiServerAuthenticationResult.Code code) Validates the rejection.Creates a direct-mode rejection without resolved identity metadata. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the value of thecoderecord 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.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportPrincipalIdrecord component.Methods inherited from interface PkiServerAuthenticationResult
resolvedPrincipalId
-
Constructor Details
-
Rejected
public Rejected(AdministrativeAuthenticationMode mode, Optional<String> transportPrincipalId, Optional<String> endClientPrincipalId, PkiServerAuthenticationResult.Code code) Validates the rejection. -
Rejected
Creates a direct-mode rejection without resolved identity metadata.- Parameters:
code- stable non-disclosing rejection code
-
-
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
-
code
-