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
ConstructorsConstructorDescriptionX509Authentication(String name, X509Certificate certificate) X509Authentication(String name, X509Certificate certificate, Collection<String> roles, Map<String, Object> attributes)  - 
Method Summary
Methods inherited from class io.micronaut.security.authentication.ServerAuthentication
getAttributes, getName, getRoles, toJson 
- 
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
 
 
 -