public final class X500AttributePrincipalDecoder extends Object implements PrincipalDecoder
DEFAULT, UNKNOWN
Constructor and Description |
---|
X500AttributePrincipalDecoder(String oid)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
boolean reverse)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
int maximumSegments)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
int maximumSegments,
boolean reverse)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
int startSegment,
int maximumSegments)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
int startSegment,
int maximumSegments,
boolean reverse)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
String joiner)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
String joiner,
boolean reverse)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
String joiner,
int maximumSegments)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
String joiner,
int startSegment,
int maximumSegments,
boolean reverse)
Construct a new instance.
|
X500AttributePrincipalDecoder(String oid,
String joiner,
int startSegment,
int maximumSegments,
boolean reverse,
boolean convert,
String... requiredOids)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getName(Principal principal)
Get the name from a principal.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aggregate, apply, asPrincipalRewriter, concatenating, concatenating, constant, withRewriter
public X500AttributePrincipalDecoder(String oid)
oid
- the OID of the attribute to mappublic X500AttributePrincipalDecoder(String oid, boolean reverse)
oid
- the OID of the attribute to mapreverse
- true
if the attribute values should be processed and returned in reverse orderpublic X500AttributePrincipalDecoder(String oid, int maximumSegments)
oid
- the OID of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mappublic X500AttributePrincipalDecoder(String oid, int maximumSegments, boolean reverse)
oid
- the OID of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mapreverse
- true
if the attribute values should be processed and returned in reverse orderpublic X500AttributePrincipalDecoder(String oid, int startSegment, int maximumSegments)
oid
- the OID of the attribute to mapstartSegment
- the 0-based starting occurrence of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mappublic X500AttributePrincipalDecoder(String oid, int startSegment, int maximumSegments, boolean reverse)
oid
- the OID of the attribute to mapstartSegment
- the 0-based starting occurrence of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mapreverse
- true
if the attribute values should be processed and returned in reverse orderpublic X500AttributePrincipalDecoder(String oid, String joiner)
oid
- the OID of the attribute to mapjoiner
- the joining stringpublic X500AttributePrincipalDecoder(String oid, String joiner, boolean reverse)
oid
- the OID of the attribute to mapjoiner
- the joining stringreverse
- true
if the attribute values should be processed and returned in reverse orderpublic X500AttributePrincipalDecoder(String oid, String joiner, int maximumSegments)
oid
- the OID of the attribute to mapjoiner
- the joining stringmaximumSegments
- the maximum number of occurrences of the attribute to mappublic X500AttributePrincipalDecoder(String oid, String joiner, int startSegment, int maximumSegments, boolean reverse)
oid
- the OID of the attribute to mapjoiner
- the joining stringstartSegment
- the 0-based starting occurrence of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mapreverse
- true
if the attribute values should be processed and returned in reverse orderpublic X500AttributePrincipalDecoder(String oid, String joiner, int startSegment, int maximumSegments, boolean reverse, boolean convert, String... requiredOids)
oid
- the OID of the attribute to mapjoiner
- the joining stringstartSegment
- the 0-based starting occurrence of the attribute to mapmaximumSegments
- the maximum number of occurrences of the attribute to mapreverse
- true
if the attribute values should be processed and returned in reverse orderconvert
- true
if the Principal should be converted to X500Principal
if not one alreadyrequiredOids
- the OIDs of the attributes that must be presentpublic String getName(Principal principal)
PrincipalDecoder
null
is returned.getName
in interface PrincipalDecoder
principal
- the principal to decodenull
if this decoder does not understand the principalCopyright © 2020 JBoss by Red Hat. All rights reserved.