Class BCStyle

    • Constructor Detail

      • BCStyle

        protected BCStyle()
    • Method Detail

      • encodeStringValue

        protected ASN1Encodable encodeStringValue​(ASN1ObjectIdentifier oid,
                                                  java.lang.String value)
        Description copied from class: AbstractX500NameStyle
        Encoded every value into a UTF8String.

        Subclasses should overwrite this method to change the encoding of specific types.

        Overrides:
        encodeStringValue in class AbstractX500NameStyle
        Parameters:
        oid - the DN oid of the value
        value - the String representation of the value
        Returns:
        a the value encoded into a ASN.1 object. Never returns null.
      • oidToDisplayName

        public java.lang.String oidToDisplayName​(ASN1ObjectIdentifier oid)
        Description copied from interface: X500NameStyle
        Return the display name for toString() associated with the OID.
        Parameters:
        oid - the OID of interest.
        Returns:
        the name displayed in toString(), null if no mapping provided.
      • oidToAttrNames

        public java.lang.String[] oidToAttrNames​(ASN1ObjectIdentifier oid)
        Description copied from interface: X500NameStyle
        Return the acceptable names in a String DN that map to OID.
        Parameters:
        oid - the OID of interest.
        Returns:
        an array of String aliases for the OID, zero length if there are none.
      • attrNameToOID

        public ASN1ObjectIdentifier attrNameToOID​(java.lang.String attrName)
        Description copied from interface: X500NameStyle
        Return the OID associated with the passed in name.
        Parameters:
        attrName - the string to match.
        Returns:
        an OID
      • fromString

        public RDN[] fromString​(java.lang.String dirName)
        Description copied from interface: X500NameStyle
        Return an array of RDN generated from the passed in String.
        Parameters:
        dirName - the String representation.
        Returns:
        an array of corresponding RDNs.
      • toString

        public java.lang.String toString​(X500Name name)
        Description copied from interface: X500NameStyle
        Convert the passed in X500Name to a String.
        Parameters:
        name - the name to convert.
        Returns:
        a String representation.