public class X509SubjectPrincipalResolver extends AbstractX509PrincipalResolver
logger| Constructor and Description |
|---|
X509SubjectPrincipalResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
resolvePrincipalInternal(X509Certificate certificate)
Replaces placeholders in the descriptor with values extracted from attribute
values in relative distinguished name components of the DN.
|
void |
setDescriptor(String s)
Sets the descriptor that describes for format of the principal ID to
create from X.509 subject DN attributes.
|
extractPrincipalId, supportsresolve, setAttributeRepository, setPrincipalAttributeName, setReturnNullIfNoAttributespublic void setDescriptor(String s)
EXAMPLE:
The above bean when applied to a certificate with the DN
DC=edu, DC=vt/UID=jacky, CN=Jascarnella Ellagwonto
produces the principal jacky@vt.edu.
s - Descriptor string where attribute names are prefixed with "$"
to identify replacement by real attribute values from the subject DN.
Valid attributes include common X.509 DN attributes such as the following:
AttributeType.protected String resolvePrincipalInternal(X509Certificate certificate)
resolvePrincipalInternal in class AbstractX509PrincipalResolvercertificate - X.509 certificate credential.AbstractX509PrincipalResolver.resolvePrincipalInternal(java.security.cert.X509Certificate)Copyright © 2004-2015 Jasig. All Rights Reserved.