FileDocCategorySizeDatePackage
NetscapeCertType.javaAPI DocAzureus 3.0.3.41642Tue Jun 08 05:13:00 BST 2004org.bouncycastle.asn1.misc

NetscapeCertType

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) }

Fields Summary
public static final int
sslClient
public static final int
sslServer
public static final int
smime
public static final int
objectSigning
public static final int
reserved
public static final int
sslCA
public static final int
smimeCA
public static final int
objectSigningCA
Constructors Summary
public NetscapeCertType(int usage)
Basic constructor.

param
usage - the bitwise OR of the Key Usage flags giving the allowed uses for the key. e.g. (X509NetscapeCertType.sslCA | X509NetscapeCertType.smimeCA)


                                  
     
         
    
        super(getBytes(usage), getPadBits(usage));
    
public NetscapeCertType(DERBitString usage)

        super(usage.getBytes(), usage.getPadBits());
    
Methods Summary
public java.lang.StringtoString()

        return "NetscapeCertType: 0x" + Integer.toHexString(data[0] & 0xff);