org.xwiki.crypto.pkix.params.x509certificate
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
@Unstable
public class DistinguishedName
- extends Object
- implements PrincipalIndentifier, org.xwiki.crypto.pkix.internal.BcPrincipalIdentifier
Represent a Principal distinguished name.
- Since:
- 5.4
- Version:
- $Id: f1b78b1723b0e6b8cf550a4c2432d6bab35e128a $
DistinguishedName
public DistinguishedName(Object name)
- Create a new distinguished name.
- Parameters:
name
- the DN name like in "CN=Common Name, O=Organisation"
getEncoded
public byte[] getEncoded()
throws IOException
- Specified by:
getEncoded
in interface PrincipalIndentifier
- Returns:
- the ASN.1 encoded form of this identifier.
- Throws:
IOException
- on encoding error.
getName
public String getName()
- Specified by:
getName
in interface PrincipalIndentifier
- Returns:
- a string representation of this principal.
getX500Name
public org.bouncycastle.asn1.x500.X500Name getX500Name()
- Specified by:
getX500Name
in interface org.xwiki.crypto.pkix.internal.BcPrincipalIdentifier
equals
public boolean equals(Object o)
- Description copied from interface:
PrincipalIndentifier
- Equality operator.
- Specified by:
equals
in interface PrincipalIndentifier
- Overrides:
equals
in class Object
- Parameters:
o
- object to check equality with.
- Returns:
- true if objects are equals.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
Copyright © 2004–2014 XWiki. All rights reserved.