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 booleanequals(Object o)Equality operator.byte[]getEncoded()StringgetName()org.bouncycastle.asn1.x500.X500NamegetX500Name()inthashCode()
-
-
-
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:
getEncodedin interfacePrincipalIndentifier- Returns:
- the ASN.1 encoded form of this identifier.
- Throws:
IOException- on encoding error.
-
getName
public String getName()
- Specified by:
getNamein interfacePrincipalIndentifier- Returns:
- a string representation of this principal.
-
getX500Name
public org.bouncycastle.asn1.x500.X500Name getX500Name()
- Specified by:
getX500Namein interfaceorg.xwiki.crypto.pkix.internal.BcPrincipalIdentifier- Returns:
- the native Bouncy Castle X500Name.
-
equals
public boolean equals(Object o)
Description copied from interface:PrincipalIndentifierEquality operator.- Specified by:
equalsin interfacePrincipalIndentifier- Overrides:
equalsin classObject- Parameters:
o- object to check equality with.- Returns:
- true if objects are equals.
-
-