Class X509Authentication

All Implemented Interfaces:
Authentication, Serializable, Principal

public class X509Authentication extends ServerAuthentication
An Authentication derived from an X509Certificate.
Since:
3.3
Author:
Burt Beckwith
See Also:
  • Constructor Details

    • X509Authentication

      public X509Authentication(@NonNull @NonNull String name, @NonNull @NonNull X509Certificate certificate)
      Parameters:
      name - The name of this principal
      certificate - X509 certification
    • X509Authentication

      public X509Authentication(@NonNull @NonNull String name, @NonNull @NonNull X509Certificate certificate, @Nullable @Nullable Collection<String> roles, @Nullable @Nullable Map<String,Object> attributes)
      Parameters:
      name - The name of this principal name
      certificate - X509 certification
      roles - Roles of the authenticated user
      attributes - Attributes of the authenticated user
  • Method Details

    • getCertificate

      @NonNull public @NonNull X509Certificate getCertificate()
      Returns:
      the X.509 certificate