public class SubjectCNMapping extends Object implements CertificatePrincipal
Constructor and Description |
---|
SubjectCNMapping() |
Modifier and Type | Method and Description |
---|---|
Principal |
toPrincipal(X509Certificate[] certs)
Returns the client cert common name portion (cn=...) of the SubjectDN
as the principal.
|
Principal |
toPrinicipal(X509Certificate[] certs)
Return the Principal associated with the specified chain of X509
client certificates.
|
public Principal toPrincipal(X509Certificate[] certs)
toPrincipal
in interface CertificatePrincipal
certs
- Array of client certificates, with the first one in
the array being the certificate of the client itself.public Principal toPrinicipal(X509Certificate[] certs)
CertificatePrincipal
null
.toPrinicipal
in interface CertificatePrincipal
certs
- Array of client certificates, with the first one in
the array being the certificate of the client itself.Copyright © 2018 JBoss by Red Hat. All rights reserved.