
public final class X500PrincipalBuilder extends Object
Name ::= CHOICE { -- only one possibility for now --
rdnSequence RDNSequence }
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
RelativeDistinguishedName ::=
SET SIZE (1..MAX) OF AttributeTypeAndValue
AttributeTypeAndValue ::= SEQUENCE {
type AttributeType,
value AttributeValue }
AttributeType ::= OBJECT IDENTIFIER
AttributeValue ::= ANY -- DEFINED BY AttributeType
DirectoryString ::= CHOICE {
teletexString TeletexString (SIZE (1..MAX)),
printableString PrintableString (SIZE (1..MAX)),
universalString UniversalString (SIZE (1..MAX)),
utf8String UTF8String (SIZE (1..MAX)),
bmpString BMPString (SIZE (1..MAX)) }
| Constructor and Description |
|---|
X500PrincipalBuilder()
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
X500PrincipalBuilder |
addCompoundItem(Collection<X500AttributeTypeAndValue> attributeTypeAndValues)
Add a compound item to the builder.
|
X500PrincipalBuilder |
addItem(X500AttributeTypeAndValue attributeTypeAndValue)
Add a single item to the builder.
|
X500Principal |
build()
Build the principal.
|
public X500PrincipalBuilder addItem(X500AttributeTypeAndValue attributeTypeAndValue)
attributeTypeAndValue - the attribute-value pair (must not be null)public X500PrincipalBuilder addCompoundItem(Collection<X500AttributeTypeAndValue> attributeTypeAndValues)
attributeTypeAndValues - the collection of attribute-value pairs (must not be null)public X500Principal build() throws IllegalArgumentException
null)IllegalArgumentException - if the principal is somehow invalidCopyright © 2020 JBoss by Red Hat. All rights reserved.