Interface PkiServerAuthenticationResult
- All Known Implementing Classes:
PkiServerAuthenticationResult.Authenticated, PkiServerAuthenticationResult.Rejected
public sealed interface PkiServerAuthenticationResult
permits PkiServerAuthenticationResult.Authenticated, PkiServerAuthenticationResult.Rejected
Safe closed mutual-TLS authentication result.
This sealed type has exactly two permitted subtypes: PkiServerAuthenticationResult.Authenticated
when the peer principal was resolved, and PkiServerAuthenticationResult.Rejected when authentication
failed. Callers use an exhaustive switch or instanceof pattern
to distinguish the two outcomes.
Thread safety
All permitted subtypes are immutable records; safe for concurrent access without additional synchronization.
- Since:
- 1.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordSuccessfully resolved persisted principal identity.static enumSafe non-disclosing rejection codes.static final recordAuthentication rejection containing only a stable safe code. -
Method Summary
Modifier and TypeMethodDescriptionReturns the resolved end-client principal when authentication succeeded.
-
Method Details
-
resolvedPrincipalId
-