Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-05


oracle.security.crypto.cert
Class X509Attributes

java.lang.Object
  extended by oracle.security.crypto.cert.X509Attributes


Deprecated.

@Deprecated
public class X509Attributes
extends java.lang.Object

This class has been deprecated in favor of X509ExtensionSet.

Provides a high-level description of those properties of an X.509 v3 certificate or CRL which are defined by its extensions.

The methods of this class are of the following form:

where Attribute is one of the following:

(*)The AuthorityKeyIdentifier attribute is handled slightly differently, in that there are two variants: AuthorityKeyIdentifierID, and the combination of AuthorityKeyIdentifierIssuer and AuthorityKeyIdentifierSerialNo. See the documentation of the methods involved for more details.


Field Summary
static int CERTIFICATE
          Deprecated. Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
static int CR_LIST
          Deprecated. Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
static int CRL_SIGN
          Deprecated. Key usage bit mask.
static int DATA_ENCIPHERMENT
          Deprecated. Key usage bit mask.
static int DECIPHER_ONLY
          Deprecated. Key usage bit mask.
static int DIGITAL_SIGNATURE
          Deprecated. Key usage bit mask.
static int ENCIPHER_ONLY
          Deprecated. Key usage bit mask.
static int KEY_AGREEMENT
          Deprecated. Key usage bit mask.
static int KEY_CERT_SIGN
          Deprecated. Key usage bit mask.
static int KEY_ENCIPHERMENT
          Deprecated. Key usage bit mask.
static int NETSCAPE_CODE_SIGNING_CA
          Deprecated. A Netscape certificate type.
static int NETSCAPE_EMAIL
          Deprecated. A Netscape certificate type.
static int NETSCAPE_EMAIL_CA
          Deprecated. A Netscape certificate type.
static int NETSCAPE_OBJECT_SIGNER
          Deprecated. A Netscape certificate type.
static int NETSCAPE_SSL_CA
          Deprecated. A Netscape certificate type.
static int NETSCAPE_SSL_CLIENT
          Deprecated. A Netscape certificate type.
static int NETSCAPE_SSL_SERVER
          Deprecated. A Netscape certificate type.
static int NON_REPUDIATION
          Deprecated. Key usage bit mask.
static int OTHER
          Deprecated. Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
static int SET_ACQ
          Deprecated. An SET certificate type.
static int SET_BCA
          Deprecated. An SET certificate type.
static int SET_CARD
          Deprecated. An SET certificate type.
static int SET_CCA
          Deprecated. An SET certificate type.
static int SET_GCA
          Deprecated. An SET certificate type.
static int SET_MCA
          Deprecated. An SET certificate type.
static int SET_MER
          Deprecated. An SET certificate type.
static int SET_PCA
          Deprecated. An SET certificate type.
static int SET_PGWY
          Deprecated. An SET certificate type.
static int SET_RCA
          Deprecated. An SET certificate type.

 

Constructor Summary
X509Attributes()
          Deprecated. This class has been deprecated in favor of X509ExtensionSet.

 

Method Summary
 void addGenericExt(X509Extension ext)
          Deprecated.  
static X509Attributes fromExtensionSet(X509ExtensionSet set, int container)
          Deprecated. Returns a X509Attributes containing the extensions from the given X509ExtensionSet.
 byte[] getAuthorityKeyIdentifierID()
          Deprecated.  
 X500Name getAuthorityKeyIdentifierIssuer()
          Deprecated.  
 java.math.BigInteger getAuthorityKeyIdentifierSerialNo()
          Deprecated.  
 boolean getCA()
          Deprecated.  
 java.util.Vector getCertificatePolicies()
          Deprecated.  
 java.math.BigInteger getCRLNumber()
          Deprecated.  
 java.util.Vector getGenericExts()
          Deprecated.  
 int getKeyUsage()
          Deprecated.  
 int getNetscapeCertType()
          Deprecated.  
 int getSETCertType()
          Deprecated.  
 byte[] getSubjectKeyIdentifier()
          Deprecated.  
 boolean isAuthorityKeyIdentifierCritical()
          Deprecated.  
 boolean isAuthorityKeyIdentifierDefined()
          Deprecated.  
 boolean isAuthorityKeyIdentifierIdDefined()
          Deprecated.  
 boolean isAuthorityKeyIdentifierIsnDefined()
          Deprecated.  
 boolean isCACritical()
          Deprecated.  
 boolean isCADefined()
          Deprecated.  
 boolean isCertificatePoliciesCritical()
          Deprecated.  
 boolean isCertificatePoliciesDefined()
          Deprecated.  
 boolean isCRLNumberCritical()
          Deprecated.  
 boolean isCRLNumberDefined()
          Deprecated.  
 boolean isKeyUsageCritical()
          Deprecated.  
 boolean isKeyUsageDefined()
          Deprecated.  
 boolean isNetscapeCertTypeCritical()
          Deprecated.  
 boolean isNetscapeCertTypeDefined()
          Deprecated.  
 boolean isSETCertTypeCritical()
          Deprecated.  
 boolean isSETCertTypeDefined()
          Deprecated.  
 boolean isSubjectKeyIdentifierCritical()
          Deprecated.  
 boolean isSubjectKeyIdentifierDefined()
          Deprecated.  
 void setAuthorityKeyIdentifier(byte[] id)
          Deprecated.  
 void setAuthorityKeyIdentifier(byte[] id, boolean critical)
          Deprecated.  
 void setAuthorityKeyIdentifier(X500Name is, java.math.BigInteger sn)
          Deprecated.  
 void setAuthorityKeyIdentifier(X500Name is, java.math.BigInteger sn, boolean critical)
          Deprecated.  
 void setAuthorityKeyIdentifier(X509 is)
          Deprecated.  
 void setAuthorityKeyIdentifier(X509 is, boolean critical)
          Deprecated.  
 void setCA(boolean CA)
          Deprecated.  
 void setCA(boolean CA, boolean critical)
          Deprecated.  
 void setCertificatePolicies(java.util.Vector cp)
          Deprecated.  
 void setCertificatePolicies(java.util.Vector cp, boolean critical)
          Deprecated.  
 void setCRLNumber(java.math.BigInteger cn)
          Deprecated.  
 void setCRLNumber(java.math.BigInteger cn, boolean critical)
          Deprecated.  
 void setGenericExts(java.util.Vector genericExts)
          Deprecated.  
 void setKeyUsage(int ku)
          Deprecated.  
 void setKeyUsage(int ku, boolean critical)
          Deprecated.  
 void setNetscapeCertType(int nct)
          Deprecated.  
 void setNetscapeCertType(int nct, boolean critical)
          Deprecated.  
 void setSETCertType(int sct)
          Deprecated.  
 void setSETCertType(int sct, boolean critical)
          Deprecated.  
 void setSubjectKeyIdentifier(byte[] id)
          Deprecated.  
 void setSubjectKeyIdentifier(byte[] id, boolean critical)
          Deprecated.  
static X509ExtensionSet toExtensionSet(X509Attributes attr)
          Deprecated. Returns a X509ExtensionSet containing the extensions defined in the given X509Attributes.
 java.lang.String toString()
          Deprecated. Returns a string representing this object.

 

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

 

Field Detail

CERTIFICATE

public static final int CERTIFICATE
Deprecated. 
Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
See Also:
Constant Field Values

CR_LIST

public static final int CR_LIST
Deprecated. 
Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
See Also:
Constant Field Values

OTHER

public static final int OTHER
Deprecated. 
Constant for use with fromExtensionSet(oracle.security.crypto.cert.X509ExtensionSet, int).
See Also:
Constant Field Values

DIGITAL_SIGNATURE

public static final int DIGITAL_SIGNATURE
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

NON_REPUDIATION

public static final int NON_REPUDIATION
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

KEY_ENCIPHERMENT

public static final int KEY_ENCIPHERMENT
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

DATA_ENCIPHERMENT

public static final int DATA_ENCIPHERMENT
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

KEY_AGREEMENT

public static final int KEY_AGREEMENT
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

KEY_CERT_SIGN

public static final int KEY_CERT_SIGN
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

CRL_SIGN

public static final int CRL_SIGN
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

ENCIPHER_ONLY

public static final int ENCIPHER_ONLY
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

DECIPHER_ONLY

public static final int DECIPHER_ONLY
Deprecated. 
Key usage bit mask.
See Also:
Constant Field Values

NETSCAPE_SSL_CLIENT

public static final int NETSCAPE_SSL_CLIENT
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_SSL_SERVER

public static final int NETSCAPE_SSL_SERVER
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_EMAIL

public static final int NETSCAPE_EMAIL
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_OBJECT_SIGNER

public static final int NETSCAPE_OBJECT_SIGNER
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_SSL_CA

public static final int NETSCAPE_SSL_CA
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_EMAIL_CA

public static final int NETSCAPE_EMAIL_CA
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

NETSCAPE_CODE_SIGNING_CA

public static final int NETSCAPE_CODE_SIGNING_CA
Deprecated. 
A Netscape certificate type.
See Also:
Constant Field Values

SET_CARD

public static final int SET_CARD
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_MER

public static final int SET_MER
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_PGWY

public static final int SET_PGWY
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_CCA

public static final int SET_CCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_MCA

public static final int SET_MCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_PCA

public static final int SET_PCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_GCA

public static final int SET_GCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_BCA

public static final int SET_BCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_RCA

public static final int SET_RCA
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

SET_ACQ

public static final int SET_ACQ
Deprecated. 
An SET certificate type.
See Also:
Constant Field Values

Constructor Detail

X509Attributes

public X509Attributes()
Deprecated. This class has been deprecated in favor of X509ExtensionSet.
Creates a new X509Attributes object, with all attributes undefined.

Method Detail

toExtensionSet

public static X509ExtensionSet toExtensionSet(X509Attributes attr)
Deprecated. 
Returns a X509ExtensionSet containing the extensions defined in the given X509Attributes.
Parameters:
attr - the X509Attributes to convert.
Returns:
a (possibly empty) X509ExtensionSet.

fromExtensionSet

public static X509Attributes fromExtensionSet(X509ExtensionSet set,
                                              int container)
Deprecated. 
Returns a X509Attributes containing the extensions from the given X509ExtensionSet.
Parameters:
set - the X509ExtensionSet to be converted.
container - the type of object that contains the extension set, defined as constants in this class: CERTIFICATE, CR_LIST, OTHER.
Returns:
a (possibly empty) X509Attributes.

isCADefined

public boolean isCADefined()
Deprecated. 
Indicates whether the basic constraints extension (and hence its CA field) is defined.

Applicable to: certificates

Returns:
true if the the CA is defined, and false if it is not.

isCACritical

public boolean isCACritical()
Deprecated. 
Indicates whether the basic constraints extension is critical

Applicable to: certificates

Returns:
true if the the basic constraints extension is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the basic constraints extension is not defined.

getCA

public boolean getCA()
Deprecated. 
Gets the value of the CA field of the basic constraints extension.

Applicable to: certificates

Returns:
true if the subject is a CA, and false if it is not.
Throws:
java.lang.IllegalStateException - If the basic constraints extension is not defined.

setCA

public void setCA(boolean CA)
Deprecated. 
Specifies the value of the CA field of the basic constraints extension. The extension will be marked critical.

Applicable to: certificates

Parameters:
ca - the value of the CA field

setCA

public void setCA(boolean CA,
                  boolean critical)
Deprecated. 
Specifies the value of the CA field of the basic constraints extension.

Applicable to: certificates

Parameters:
ca - value of the CA field
critical - true if the ca is critical, and false otherwise

isKeyUsageDefined

public boolean isKeyUsageDefined()
Deprecated. 
Indicates whether the key usage extension is defined

Applicable to: certificates

Returns:
true if the key usage is defined, and false if it is not.

isKeyUsageCritical

public boolean isKeyUsageCritical()
Deprecated. 
Indicates whether the key usage extension is critical
Returns:
true if the key usage is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the key usageis not defined.

getKeyUsage

public int getKeyUsage()
Deprecated. 
Returns the value of the key usage extension.

The following constants defined in this class can be used as masks to access the individual bits: DIGITAL_SIGNATURE, NON_REPUDIATION, KEY_ENCIPHERMENT, DATA_ENCIPHERMENT, KEY_AGREEMENT, KEY_CERT_SIGN, CRL_SIGN.

Applicable to: certificates

Returns:
the key usage bits.
Throws:
java.lang.IllegalStateException - If the key usage is not defined.

setKeyUsage

public void setKeyUsage(int ku)
Deprecated. 
Specifies the value of the key usage extension. The key usage will be marked critical.

Applicable to: certificates

Parameters:
ku - the key usage bits

setKeyUsage

public void setKeyUsage(int ku,
                        boolean critical)
Deprecated. 
Specifies the value of the key usage extension.

Applicable to: certificates

Parameters:
ku - the key usage bits
critical - true if the key usage is critical, and false otherwise

isCertificatePoliciesDefined

public boolean isCertificatePoliciesDefined()
Deprecated. 
Indicates whether the certificate policies extension is defined

Applicable to: certificates

Returns:
true if the certificate policies extension is defined, and false if it is not.

isCertificatePoliciesCritical

public boolean isCertificatePoliciesCritical()
Deprecated. 
Indicates whether the certificate policies extension is critical

Applicable to: certificates

Returns:
true if the certificate policies extension is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the certificate policy is not defined.

getCertificatePolicies

public java.util.Vector getCertificatePolicies()
Deprecated. 
Returns the values of the certificate policies extension.

Applicable to: certificates

If the Certificate Policies extension is defined, returns the set of certificate policies. The value is a vector of X509PolicyInformation objects.

Returns:
the values of the certificate policies
Throws:
java.lang.IllegalStateException - If the certificate policy is not defined.

setCertificatePolicies

public void setCertificatePolicies(java.util.Vector cp)
Deprecated. 
Specifies the value of the certificate policies extension. The certificate policies will not be marked critical.

Applicable to: certificates

Parameters:
ku - the key usage bits

setCertificatePolicies

public void setCertificatePolicies(java.util.Vector cp,
                                   boolean critical)
Deprecated. 
Specifies the value of the certificate policies extension.

Applicable to: certificates

Parameters:
cp - the values of the certificate policies
critical - true if the certificate policies are critical, and false otherwise

isAuthorityKeyIdentifierDefined

public boolean isAuthorityKeyIdentifierDefined()
Deprecated. 
Indicates whether the authority key identifier extension is defined.

Applicable to: certificates

Returns:
true if either the issuer and serial number or the key ID of the CA certificate are defined, false otherwise

isAuthorityKeyIdentifierIsnDefined

public boolean isAuthorityKeyIdentifierIsnDefined()
Deprecated. 
Indicates whether the issuer and serial number are defined.

Applicable to: certificates

Returns:
true if the issuer and serial number of the CA certificate are defined, false otherwise

isAuthorityKeyIdentifierIdDefined

public boolean isAuthorityKeyIdentifierIdDefined()
Deprecated. 
Indicates whether the key ID of the CA certificate is defined.

Applicable to: certificates

Returns:
true if the key ID of the CA certificate is defined, or false otherwise

isAuthorityKeyIdentifierCritical

public boolean isAuthorityKeyIdentifierCritical()
Deprecated. 
Indicates whether the authority key identifier extension is critical.

Applicable to: certificates

Returns:
true if either the issuer and serial number or the key ID of the CA certificate is critical, false otherwise

getAuthorityKeyIdentifierIssuer

public X500Name getAuthorityKeyIdentifierIssuer()
Deprecated. 
Returns the values of the authority key identifier issuer extension.

Authority key identifier: the issuer of the CA certificate used to sign this certificate.

Applicable to: certificates

Returns:
the values of the authority key identifier issuer
Throws:
java.lang.IllegalStateException - If the authority key identifier issuer is not defined.

getAuthorityKeyIdentifierSerialNo

public java.math.BigInteger getAuthorityKeyIdentifierSerialNo()
Deprecated. 
Returns the values of the authority key identifier serial No. extension.

Applicable to: certificates

Authority key identifier: the serial number of the CA certificate used to sign this certificate.

Returns:
the values of the authority key identifier serial No.
Throws:
java.lang.IllegalStateException - If the authority key identifier serial No. is not defined.

getAuthorityKeyIdentifierID

public byte[] getAuthorityKeyIdentifierID()
Deprecated. 
Returns the values of the authority key idertifier ID extension.

Applicable to: certificates

Authority key identifier: the ID of the key used to sign this certificate (corresponding to the subject key identifier in the CA certificate).

Returns:
the values of authority key idertifier ID
Throws:
java.lang.IllegalStateException - If the certificate policy is not defined.

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(byte[] id)
Deprecated. 
Specifies the value of the authority key identifier extension. The suthority key indentifier will not be marked critical.

Applicable to: certificates

Parameters:
id - value of the authority key identifier

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(X509 is)
Deprecated. 
Specifies the value of the authority key identifier extension. The suthority key indentifier will not be marked critical.

Applicable to: certificates

Parameters:
is - value of the authority key identifier

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(X500Name is,
                                      java.math.BigInteger sn)
Deprecated. 
Specifies the value of the authority key identifier extension. The suthority key indentifier will not be marked critical.

Applicable to: certificates

Parameters:
is - value of the authority key identifier
sn - serial number

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(byte[] id,
                                      boolean critical)
Deprecated. 
Specifies the value of the authority key identifier extension.

Applicable to: certificates

Parameters:
id - value of the authority key identifier
critical - true if the CRL number extension is critical, and false otherwise

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(X509 is,
                                      boolean critical)
Deprecated. 
Specifies the value of the authority key identifier extension.

Applicable to: certificates

Parameters:
is - value of the authority key identifier
critical - true if the CRL number extension is critical, and false otherwise

setAuthorityKeyIdentifier

public void setAuthorityKeyIdentifier(X500Name is,
                                      java.math.BigInteger sn,
                                      boolean critical)
Deprecated. 
Specifies the value of the authority key identifier extension.

Applicable to: certificates

Parameters:
is - value of the authority key identifier
sn - the serial number
critical - true if the CRL number extension is critical, and false otherwise

isSubjectKeyIdentifierDefined

public boolean isSubjectKeyIdentifierDefined()
Deprecated. 
Indicates whether the subject key identifier extension is defined.

Applicable to: certificates

Returns:
true if subject key identifier is defined, and false if it is not.

isSubjectKeyIdentifierCritical

public boolean isSubjectKeyIdentifierCritical()
Deprecated. 
Indicates whether the subject key identifier extension is critical.

Applicable to: certificates

Returns:
true if subject key identifier is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the subject key identifier is not defined.

getSubjectKeyIdentifier

public byte[] getSubjectKeyIdentifier()
Deprecated. 
Returns the value of the subject key identifier extension.

Applicable to: certificates

Returns:
the value of the subject key identifier
Throws:
java.lang.IllegalStateException - If the subject key identifier is not defined.

setSubjectKeyIdentifier

public void setSubjectKeyIdentifier(byte[] id)
Deprecated. 
Specifies the value of the subject key identifier extension. The subject key identifier will not be marked critical.

Applicable to: Certificate

Parameters:
id - the value of the subjectkey identifier

setSubjectKeyIdentifier

public void setSubjectKeyIdentifier(byte[] id,
                                    boolean critical)
Deprecated. 
Specifies the value of the subject key identifier extension.

Applicable to: Certificate

Parameters:
id - the value of the subjectkey identifier
critical - true if the CRL number extension is critical, and false otherwise

isNetscapeCertTypeDefined

public boolean isNetscapeCertTypeDefined()
Deprecated. 
Indicates whether the Netscape cert type extension is defined.

Applicable to: certificates

Returns:
true if the Netscape cert type is critical, and false if it is not.

isNetscapeCertTypeCritical

public boolean isNetscapeCertTypeCritical()
Deprecated. 
Indicates whether the Netscape cert type extension is marked critical.

Applicable to: certificates

Returns:
true if the Netscape cert type is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the Netscape cert type is not defined.

getNetscapeCertType

public int getNetscapeCertType()
Deprecated. 
Returns the value of the Netscape cert type extension.

The following constants defined in this class can be used to access its fields: NETSCAPE_SSL_CLIENT, NETSCAPE_SSL_SERVER, NETSCAPE_EMAIL, NETSCAPE_OBJECT_SIGNER, NETSCAPE_SSL_CA, NETSCAPE_EMAIL_CA, NETSCAPE_CODE_SIGNING_CA.

Applicable to: certificates

Returns:
the Netscape certificate type bit mask
Throws:
java.lang.IllegalStateException - if the Netscape cert type is not defined

setNetscapeCertType

public void setNetscapeCertType(int nct)
Deprecated. 
Specifies the value of the Netscape cert type extension. The Netscape cert type will not be marked critical.

Applicable to: certificates

Parameters:
nct - the Netscape cert type

setNetscapeCertType

public void setNetscapeCertType(int nct,
                                boolean critical)
Deprecated. 
Specifies the value of the Netscape cert type extension.

Applicable to: Certificate

Parameters:
id - the value of the Netscape cert type
critical - true if the Netscape cert type is critical, and false otherwise

isSETCertTypeDefined

public boolean isSETCertTypeDefined()
Deprecated. 
Indicates whether the SET cert type extension is defined.

Applicable to: certificates

Returns:
true if the SET cert type is critical, and false if it is not.

isSETCertTypeCritical

public boolean isSETCertTypeCritical()
Deprecated. 
Indicates whether the SET cert type extension is marked critical.

Applicable to: certificates

Returns:
true if the SET cert type is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the SET cert type is not defined.

getSETCertType

public int getSETCertType()
Deprecated. 
Returns the value of the SET cert type extension.

The following constants defined in this class can be used to access its fields: SET_CARD, SET_MER, SET_PGWY, SET_CCA, SET_MCA, SET_PCA, SET_GCA, SET_BCA, SET_RCA, SET_ACQ.

Applicable to: certificates

Returns:
SET certificate type
Throws:
java.lang.IllegalStateException - if the SET cert type is not defined

setSETCertType

public void setSETCertType(int sct)
Deprecated. 
Specifies the value of the SET cert type extension. The SET cert type will be marked critical.

Applicable to: certificates

Parameters:
sct - the SET cert type

setSETCertType

public void setSETCertType(int sct,
                           boolean critical)
Deprecated. 
Specifies the value of the SET cert type extension.

Applicable to: Certificate

Parameters:
id - the value of the SET cert type
critical - true if the SET cert type is critical, and false otherwise

isCRLNumberDefined

public boolean isCRLNumberDefined()
Deprecated. 
Indicates whether the CRL number extension is defined.

Applicable to: CRLs.

Returns:
true if the CRL number extension is defined, and false if it is not.

isCRLNumberCritical

public boolean isCRLNumberCritical()
Deprecated. 
Indicates whether the CRL number extension is marked critical.

Applicable to: CRLs.

Returns:
true if the CRL number extension is critical, and false if it is not.
Throws:
java.lang.IllegalStateException - If the CRL number extension is not defined.

getCRLNumber

public java.math.BigInteger getCRLNumber()
Deprecated. 
Returns the value of the CRL number extension.

Applicable to: CRLs.

Returns:
the CRL number
Throws:
java.lang.IllegalStateException - If the CRL number extension is not defined.

setCRLNumber

public void setCRLNumber(java.math.BigInteger cn)
Deprecated. 
Specifies the value of the CRL number extension. The extension will not be marked critical.

Applicable to: CRLs.

Parameters:
cn - the CRL number

setCRLNumber

public void setCRLNumber(java.math.BigInteger cn,
                         boolean critical)
Deprecated. 
Specifies the value of the CRL number extension.

Applicable to: CRLs.

Parameters:
cn - the CRL number
critical - true if the CRL number extension is critical, and false otherwise

getGenericExts

public java.util.Vector getGenericExts()
Deprecated. 
Returns the vector of generic (that is, unrecognized) extensions.

Applicable to: CRLs.

Returns:
a vector of X509Extensions, or null

setGenericExts

public void setGenericExts(java.util.Vector genericExts)
Deprecated. 
Specifies the value of the generic extensions.

These will be passed to the X509 or CRL object verbatim and put at the end of the extension list.

Applicable to: certificates

Parameters:
genericExts - the vector of generic extensions
critical - true if the CRL number extension is critical, and false otherwise

addGenericExt

public void addGenericExt(X509Extension ext)
Deprecated. 
Adds a generic extension.

Applicable to: certificates

Parameters:
ext - a generic extension to be add

toString

public java.lang.String toString()
Deprecated. 
Returns a string representing this object.
Overrides:
toString in class java.lang.Object
Returns:
a string representation

Skip navigation links

Oracle Fusion Middleware Security Engine Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10674-05


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