public class InternalX500DNHandler extends Object implements X500DNHandler
X500DNHandler
which uses the internal built-in mechanisms
provided by X500Principal
directly.FORMAT_RFC1779, FORMAT_RFC2253
コンストラクタと説明 |
---|
InternalX500DNHandler() |
修飾子とタイプ | メソッドと説明 |
---|---|
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.
|
public byte[] getEncoded(X500Principal principal)
getEncoded
インタフェース内 X500DNHandler
principal
- the principal name instance to serializepublic String getName(X500Principal principal)
getName
インタフェース内 X500DNHandler
principal
- the principal name instance to serializepublic String getName(X500Principal principal, String format)
X500DNHandler.FORMAT_RFC1779
and X500DNHandler.FORMAT_RFC2253
;getName
インタフェース内 X500DNHandler
principal
- the principal name instance to serializeformat
- the format specifier of the resulting serialized string namepublic X500Principal parse(String name)
parse
インタフェース内 X500DNHandler
name
- the name string to parsepublic X500Principal parse(byte[] name)
parse
インタフェース内 X500DNHandler
name
- a distinguished name in ASN.1 DER encoded formpublic X500DNHandler clone()
Cloneable
.clone
インタフェース内 X500DNHandler
clone
クラス内 Object
Copyright © 2012. All Rights Reserved.