Class X500PrincipalHelper

java.lang.Object
eu.europa.esig.dss.model.x509.X500PrincipalHelper

public class X500PrincipalHelper extends Object
This class contain utility methods to extract String representation of a X500Principal distinguishing name
  • Constructor Details

    • X500PrincipalHelper

      public X500PrincipalHelper(X500Principal principal)
      Default constructor
      Parameters:
      principal - X500Principal
  • Method Details

    • getPrincipal

      public X500Principal getPrincipal()
      Returns the current X500Principal
      Returns:
      X500Principal
    • getCanonical

      public String getCanonical()
      Gets canonical name
      Returns:
      String
    • getRFC2253

      public String getRFC2253()
      Gets RFC2253 standard name
      Returns:
      String
    • getPrettyPrintRFC2253

      public String getPrettyPrintRFC2253()
      Gets pretty-printed RFC2253 standard name
      Returns:
      String
    • getEncoded

      public byte[] getEncoded()
      Gets encoded X500Principal object binaries
      Returns:
      byte array
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object