|
Oracle Security Developer Tools Security Engine Java API Reference 10g (10.1.4.0.1) B28175-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.crypto.cert.X509Extension
oracle.security.crypto.cert.ext.NetscapeCertTypeExtension
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 |
public static final int SSL_CLIENT
setUsageFlag(int)
.
public static final int SSL_SERVER
setUsageFlag(int)
.
public static final int SMIME
setUsageFlag(int)
.
public static final int OBJECT_SIGNING
setUsageFlag(int)
.
public static final int SSL_CA
setUsageFlag(int)
.
public static final int SMIME_CA
setUsageFlag(int)
.
public static final int OBJECT_SIGNING_CA
setUsageFlag(int)
.
Constructor Detail |
public NetscapeCertTypeExtension()
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.
public NetscapeCertTypeExtension(boolean critical)
critical
- true
if this extension is critical, false
otherwise.public NetscapeCertTypeExtension(int[] flags, boolean critical)
flags
- an array of usage flag constants defined in this class.critical
- true
if this extension is critical, false
otherwise.public NetscapeCertTypeExtension(java.io.InputStream is) throws java.io.IOException
Method Detail |
public boolean hasUsageFlag(int flag)
flag
- one of the certificate usage flag constants defined in this class.true
if the flag is set, otherwise false
.public void setUsageFlag(int flag)
flag
- one of the certificate usage flag constants defined in this class.public void setUsageFlags(int[] flags)
public void clearUsageFlag(int flag)
public void clearAllUsageFlags()
public java.lang.String toString()
X509Extension
toString
in class X509Extension
|
Oracle Security Developer Tools Security Engine Java API Reference 10g (10.1.4.0.1) B28175-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |