public class X509Authentication extends ServerAuthentication
Constructor and Description |
---|
X509Authentication(java.lang.String name,
java.security.cert.X509Certificate certificate) |
X509Authentication(java.lang.String name,
java.security.cert.X509Certificate certificate,
java.util.Collection<java.lang.String> roles,
java.util.Map<java.lang.String,java.lang.Object> attributes) |
Modifier and Type | Method and Description |
---|---|
java.security.cert.X509Certificate |
getCertificate() |
getAttributes, getName, getRoles, toJson
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, build, build, build
public X509Authentication(@NonNull java.lang.String name, @NonNull java.security.cert.X509Certificate certificate)
name
- The name of this principalcertificate
- X509 certificationpublic X509Authentication(@NonNull java.lang.String name, @NonNull java.security.cert.X509Certificate certificate, @Nullable java.util.Collection<java.lang.String> roles, @Nullable java.util.Map<java.lang.String,java.lang.Object> attributes)
name
- The name of this principal namecertificate
- X509 certificationroles
- Roles of the authenticated userattributes
- Attributes of the authenticated user