Class X509Authentication
java.lang.Object
io.micronaut.security.authentication.ServerAuthentication
io.micronaut.security.x509.X509Authentication
- All Implemented Interfaces:
Authentication, Serializable, Principal
An Authentication derived from an X509Certificate.
- Since:
- 3.3
- Author:
- Burt Beckwith
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionX509Authentication(@NonNull String name, @NonNull X509Certificate certificate) X509Authentication(@NonNull String name, @NonNull X509Certificate certificate, @Nullable Collection<String> roles, @Nullable Map<String, Object> attributes) -
Method Summary
Methods inherited from class ServerAuthentication
equals, getAttributes, getName, getRoles, hashCode, toJsonMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Authentication
withAttributes, withAttributes, withRoles, withRoles, withUsername
-
Constructor Details
-
X509Authentication
- Parameters:
name- The name of this principalcertificate- X509 certification
-
X509Authentication
public X509Authentication(@NonNull String name, @NonNull X509Certificate certificate, @Nullable Collection<String> roles, @Nullable Map<String, Object> attributes) - Parameters:
name- The name of this principal namecertificate- X509 certificationroles- Roles of the authenticated userattributes- Attributes of the authenticated user
-
-
Method Details
-
getCertificate
- Returns:
- the X.509 certificate
-