|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensaml.xml.security.x509.InternalX500DNHandler
public class InternalX500DNHandler
Basic implementation of X500DNHandler
which uses the internal built-in mechanisms
provided by X500Principal
directly.
Field Summary |
---|
Fields inherited from interface org.opensaml.xml.security.x509.X500DNHandler |
---|
FORMAT_RFC1779, FORMAT_RFC2253 |
Constructor Summary | |
---|---|
InternalX500DNHandler()
|
Method Summary | |
---|---|
X500DNHandler |
clone()
Clone the handler. |
byte[] |
getEncoded(X500Principal principal)
Returns the distinguished name in ASN.1 DER encoded form. |
String |
getName(X500Principal principal)
Returns a string representation of the X.500 distinguished name using the default format as defined in the underlying implementation. |
String |
getName(X500Principal principal,
String format)
Returns a string representation of the X.500 distinguished name using the specified format. |
X500Principal |
parse(byte[] name)
Parse the ASN.1 DER encoding representation of a name and build a new principal instance. |
X500Principal |
parse(String name)
Parse the string representation of a name and build a new principal instance. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InternalX500DNHandler()
Method Detail |
---|
public byte[] getEncoded(X500Principal principal)
getEncoded
in interface X500DNHandler
principal
- the principal name instance to serialize
public String getName(X500Principal principal)
getName
in interface X500DNHandler
principal
- the principal name instance to serialize
public String getName(X500Principal principal, String format)
X500DNHandler.FORMAT_RFC1779
and X500DNHandler.FORMAT_RFC2253
;
getName
in interface X500DNHandler
principal
- the principal name instance to serializeformat
- the format specifier of the resulting serialized string name
public X500Principal parse(String name)
parse
in interface X500DNHandler
name
- the name string to parse
public X500Principal parse(byte[] name)
parse
in interface X500DNHandler
name
- a distinguished name in ASN.1 DER encoded form
public X500DNHandler clone()
Cloneable
.
clone
in interface X500DNHandler
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |