Package eu.europa.esig.dss.model.x509
Class X500PrincipalHelper
java.lang.Object
eu.europa.esig.dss.model.x509.X500PrincipalHelper
This class contain utility methods to extract String representation of a
X500Principal
distinguishing name-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets canonical namebyte[]
Gets encodedX500Principal
object binariesGets pretty-printed RFC2253 standard nameReturns the currentX500Principal
Gets RFC2253 standard nameint
hashCode()
-
Constructor Details
-
X500PrincipalHelper
Default constructor- Parameters:
principal
-X500Principal
-
-
Method Details
-
getPrincipal
Returns the currentX500Principal
- Returns:
X500Principal
-
getCanonical
Gets canonical name- Returns:
String
-
getRFC2253
Gets RFC2253 standard name- Returns:
String
-
getPrettyPrintRFC2253
Gets pretty-printed RFC2253 standard name- Returns:
String
-
getEncoded
public byte[] getEncoded()Gets encodedX500Principal
object binaries- Returns:
- byte array
-
hashCode
public int hashCode() -
equals
-