|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface X500DNHandler
Interface for implementations which handle parsing and serialization of X.500 names
represented by X500Principal
.
Field Summary | |
---|---|
static java.lang.String |
FORMAT_RFC1779
Specifies the string format specified in RFC 1779. |
static java.lang.String |
FORMAT_RFC2253
Specifies the string format specified in RFC 2253. |
Method Summary | |
---|---|
X500DNHandler |
clone()
Clone the handler. |
byte[] |
getEncoded(javax.security.auth.x500.X500Principal principal)
Returns the distinguished name in ASN.1 DER encoded form. |
java.lang.String |
getName(javax.security.auth.x500.X500Principal principal)
Returns a string representation of the X.500 distinguished name using the default format as defined in the underlying implementation. |
java.lang.String |
getName(javax.security.auth.x500.X500Principal principal,
java.lang.String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
javax.security.auth.x500.X500Principal |
parse(byte[] name)
Parse the ASN.1 DER encoding representation of a name and build a new principal instance. |
javax.security.auth.x500.X500Principal |
parse(java.lang.String name)
Parse the string representation of a name and build a new principal instance. |
Field Detail |
---|
static final java.lang.String FORMAT_RFC1779
static final java.lang.String FORMAT_RFC2253
Method Detail |
---|
javax.security.auth.x500.X500Principal parse(java.lang.String name)
name
- the name string to parse
java.lang.IllegalArgumentException
- if the name value can not be parsed by the implementationjavax.security.auth.x500.X500Principal parse(byte[] name)
name
- a distinguished name in ASN.1 DER encoded form
java.lang.IllegalArgumentException
- if the name value can not be parsed by the implementationjava.lang.String getName(javax.security.auth.x500.X500Principal principal)
principal
- the principal name instance to serialize
java.lang.String getName(javax.security.auth.x500.X500Principal principal, java.lang.String format)
FORMAT_RFC1779
and FORMAT_RFC2253
;
principal
- the principal name instance to serializeformat
- the format specifier of the resulting serialized string name
java.lang.IllegalArgumentException
- if the specified format is not understood by the implementationbyte[] getEncoded(javax.security.auth.x500.X500Principal principal)
principal
- the principal name instance to serialize
X500DNHandler clone()
Cloneable
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |