Package org.bouncycastle.asn1.misc
Class NetscapeCertType
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.ASN1Primitive
org.bouncycastle.asn1.DERBitString
org.bouncycastle.asn1.misc.NetscapeCertType
- All Implemented Interfaces:
ASN1Encodable,ASN1String
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) }
-
Field Summary
Fields Modifier and Type Field Description static intobjectSigningstatic intobjectSigningCAstatic intreservedstatic intsmimestatic intsmimeCAstatic intsslCAstatic intsslClientstatic intsslServerFields inherited from class org.bouncycastle.asn1.DERBitString
data, padBits -
Constructor Summary
Constructors Constructor Description NetscapeCertType(int usage)Basic constructor.NetscapeCertType(DERBitString usage) -
Method Summary
Methods inherited from class org.bouncycastle.asn1.DERBitString
asn1Equals, getBytes, getBytes, getInstance, getInstance, getPadBits, getPadBits, getString, hashCode, intValueMethods inherited from class org.bouncycastle.asn1.ASN1Primitive
equals, fromByteArray, toASN1PrimitiveMethods inherited from class org.bouncycastle.asn1.ASN1Object
getEncoded, getEncoded, hasEncodedTagValue, toASN1Object
-
Field Details
-
sslClient
public static final int sslClient- See Also:
- Constant Field Values
-
sslServer
public static final int sslServer- See Also:
- Constant Field Values
-
smime
public static final int smime- See Also:
- Constant Field Values
-
objectSigning
public static final int objectSigning- See Also:
- Constant Field Values
-
reserved
public static final int reserved- See Also:
- Constant Field Values
-
sslCA
public static final int sslCA- See Also:
- Constant Field Values
-
smimeCA
public static final int smimeCA- See Also:
- Constant Field Values
-
objectSigningCA
public static final int objectSigningCA- See Also:
- Constant Field Values
-
-
Constructor Details
-
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
-
-
Method Details
-
toString
Description copied from class:ObjectReturns 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
toStringmethod if you intend implementing your owntoStringmethod.- Overrides:
toStringin classDERBitString- Returns:
- a printable representation of this object.
-