Package io.micronaut.security.x509
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
ConstructorDescriptionX509Authentication
(@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 io.micronaut.security.authentication.ServerAuthentication
getAttributes, getName, getRoles, toJson
-
Constructor Details
-
X509Authentication
public X509Authentication(@NonNull @NonNull String name, @NonNull @NonNull X509Certificate certificate) - Parameters:
name
- The name of this principalcertificate
- 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 namecertificate
- X509 certificationroles
- Roles of the authenticated userattributes
- Attributes of the authenticated user
-
-
Method Details
-
getCertificate
- Returns:
- the X.509 certificate
-