Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


oracle.security.crypto.cert.ext
Class NetscapeCertTypeExtension

java.lang.Object
  extended byoracle.security.crypto.cert.X509Extension
      extended byoracle.security.crypto.cert.ext.NetscapeCertTypeExtension

All Implemented Interfaces:
oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class NetscapeCertTypeExtension
extends X509Extension

Netscape certificate type extension.


Field Summary
static int OBJECT_SIGNING
          Certificate usage flag to be used in setUsageFlag(int).
static int OBJECT_SIGNING_CA
          Certificate usage flag to be used in setUsageFlag(int).
static int SMIME
          Certificate usage flag to be used in setUsageFlag(int).
static int SMIME_CA
          Certificate usage flag to be used in setUsageFlag(int).
static int SSL_CA
          Certificate usage flag to be used in setUsageFlag(int).
static int SSL_CLIENT
          Certificate usage flag to be used in setUsageFlag(int).
static int SSL_SERVER
          Certificate usage flag to be used in setUsageFlag(int).

 

Fields inherited from class oracle.security.crypto.cert.X509Extension
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded

 

Constructor Summary
NetscapeCertTypeExtension()
          Create a new extension with the appropriate OID type.
NetscapeCertTypeExtension(boolean critical)
          Creates a new extension with no certificate usage flags set.
NetscapeCertTypeExtension(java.io.InputStream is)
           
NetscapeCertTypeExtension(int[] flags, boolean critical)
          Creates a new extension with the given certificate usage flags set.

 

Method Summary
 void clearAllUsageFlags()
           
 void clearUsageFlag(int flag)
           
 boolean hasUsageFlag(int flag)
          Returns whether or not the given certificate usage flag is set.
 void setUsageFlag(int flag)
          Sets the given certificate usage flag.
 void setUsageFlags(int[] flags)
           
 java.lang.String toString()
          Returns a string representation of this object.

 

Methods inherited from class oracle.security.crypto.cert.X509Extension
getASN1Value, getCritical, getID, getType, getValue, input, input, inputInstance, isRecognized, length, output, setCritical, setValue

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

SSL_CLIENT

public static final int SSL_CLIENT
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

SSL_SERVER

public static final int SSL_SERVER
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

SMIME

public static final int SMIME
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

OBJECT_SIGNING

public static final int OBJECT_SIGNING
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

SSL_CA

public static final int SSL_CA
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

SMIME_CA

public static final int SMIME_CA
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

OBJECT_SIGNING_CA

public static final int OBJECT_SIGNING_CA
Certificate usage flag to be used in setUsageFlag(int).
See Also:
Constant Field Values

Constructor Detail

NetscapeCertTypeExtension

public NetscapeCertTypeExtension()
Create a new extension with the appropriate OID type.

Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.


NetscapeCertTypeExtension

public NetscapeCertTypeExtension(boolean critical)
Creates a new extension with no certificate usage flags set.
Parameters:
critical - true if this extension is critical, false otherwise.

NetscapeCertTypeExtension

public NetscapeCertTypeExtension(int[] flags,
                                 boolean critical)
Creates a new extension with the given certificate usage flags set.
Parameters:
flags - an array of usage flag constants defined in this class.
critical - true if this extension is critical, false otherwise.

NetscapeCertTypeExtension

public NetscapeCertTypeExtension(java.io.InputStream is)
                          throws java.io.IOException

Method Detail

hasUsageFlag

public boolean hasUsageFlag(int flag)
Returns whether or not the given certificate usage flag is set.
Parameters:
flag - one of the certificate usage flag constants defined in this class.
Returns:
true if the flag is set, otherwise false.

setUsageFlag

public void setUsageFlag(int flag)
Sets the given certificate usage flag.
Parameters:
flag - one of the certificate usage flag constants defined in this class.

setUsageFlags

public void setUsageFlags(int[] flags)

clearUsageFlag

public void clearUsageFlag(int flag)

clearAllUsageFlags

public void clearAllUsageFlags()

toString

public java.lang.String toString()
Description copied from class: X509Extension
Returns a string representation of this object.
Overrides:
toString in class X509Extension
Returns:
a string representation

Oracle Security Developer Tools Security Engine Java API Reference
10g (10.1.4.0.1)

B28175-01


Copyright © 2005 ,2006 , Oracle. All rights reserved.