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
  • Method Details

    • resolvedPrincipalId

      default Optional<String> resolvedPrincipalId()
      Returns the resolved end-client principal when authentication succeeded.
      Returns:
      principal identity when authenticated, otherwise empty