Class X500NameBuilder

  • All Implemented Interfaces:

    
    public class X500NameBuilder
    
                        

    A builder class for making X.500 Name objects.

    • Constructor Detail

      • X500NameBuilder

        X500NameBuilder()
        Constructor using the default style (BCStyle).
      • X500NameBuilder

        X500NameBuilder(X500NameStyle template)
        Constructor using a specified style.
        Parameters:
        template - the style template for string to DN conversion.
    • Method Detail

      • addRDN

         X500NameBuilder addRDN(ASN1ObjectIdentifier oid, String value)

        Add an RDN based on a single OID and a string representation of its value.

        Parameters:
        oid - the OID for this RDN.
        value - the string representation of the value the OID refers to.
        Returns:

        the current builder instance.

      • addRDN

         X500NameBuilder addRDN(AttributeTypeAndValue attrTAndV)

        Add an RDN based on the passed in AttributeTypeAndValue.

        Parameters:
        attrTAndV - the AttributeTypeAndValue to build the RDN from.
        Returns:

        the current builder instance.

      • addMultiValuedRDN

         X500NameBuilder addMultiValuedRDN(Array<ASN1ObjectIdentifier> oids, Array<String> values)

        Add a multi-valued RDN made up of the passed in OIDs and associated string values.

        Parameters:
        oids - the OIDs making up the RDN.
        values - the string representation of the values the OIDs refer to.
        Returns:

        the current builder instance.

      • build

         X500Name build()

        Build an X.500 name for the current builder state.

        Returns:

        a new X.500 name.