Class DistinguishedName
- java.lang.Object
-
- org.xwiki.crypto.pkix.params.x509certificate.DistinguishedName
-
- All Implemented Interfaces:
org.xwiki.crypto.pkix.internal.BcPrincipalIdentifier
,PrincipalIndentifier
- Direct Known Subclasses:
X509DirectoryName
public class DistinguishedName extends Object implements PrincipalIndentifier, org.xwiki.crypto.pkix.internal.BcPrincipalIdentifier
Represent a Principal distinguished name.- Since:
- 5.4
- Version:
- $Id: 1a8587ed4df1eb600110a4acfcc6dfd66c7907bc $
-
-
Constructor Summary
Constructors Constructor Description DistinguishedName(Object name)
Create a new distinguished name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Equality operator.byte[]
getEncoded()
String
getName()
org.bouncycastle.asn1.x500.X500Name
getX500Name()
int
hashCode()
-
-
-
Constructor Detail
-
DistinguishedName
public DistinguishedName(Object name)
Create a new distinguished name.- Parameters:
name
- the DN name like in "CN=Common Name, O=Organisation"
-
-
Method Detail
-
getEncoded
public byte[] getEncoded() throws IOException
- Specified by:
getEncoded
in interfacePrincipalIndentifier
- Returns:
- the ASN.1 encoded form of this identifier.
- Throws:
IOException
- on encoding error.
-
getName
public String getName()
- Specified by:
getName
in interfacePrincipalIndentifier
- Returns:
- a string representation of this principal.
-
getX500Name
public org.bouncycastle.asn1.x500.X500Name getX500Name()
- Specified by:
getX500Name
in interfaceorg.xwiki.crypto.pkix.internal.BcPrincipalIdentifier
- Returns:
- the native Bouncy Castle X500Name.
-
equals
public boolean equals(Object o)
Description copied from interface:PrincipalIndentifier
Equality operator.- Specified by:
equals
in interfacePrincipalIndentifier
- Overrides:
equals
in classObject
- Parameters:
o
- object to check equality with.- Returns:
- true if objects are equals.
-
-