Class NetscapeCertType

  • All Implemented Interfaces:
    ASN1Encodable, ASN1String, Encodable

    public class NetscapeCertType
    extends DERBitString
    The NetscapeCertType object.
        NetscapeCertType ::= BIT STRING {
             SSLClient               (0),
             SSLServer               (1),
             S/MIME                  (2),
             Object Signing          (3),
             Reserved                (4),
             SSL CA                  (5),
             S/MIME CA               (6),
             Object Signing CA       (7) }
     
    • Constructor Detail

      • NetscapeCertType

        public NetscapeCertType​(int usage)
        Basic constructor.
        Parameters:
        usage - - the bitwise OR of the Key Usage flags giving the allowed uses for the key. e.g. (X509NetscapeCertType.sslCA | X509NetscapeCertType.smimeCA)
      • NetscapeCertType

        public NetscapeCertType​(DERBitString usage)
    • Method Detail

      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class DERBitString
        Returns:
        a printable representation of this object.