Skip navigation links

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

E10674-03


oracle.security.crypto.cert.ext
Class AuthorityKeyIDExtension

java.lang.Object
  extended by oracle.security.crypto.cert.X509Extension
      extended by oracle.security.crypto.cert.ext.AuthorityKeyIDExtension

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class AuthorityKeyIDExtension
extends X509Extension

Represents the certificate/CRL extension Authority Key Identifier from RFC 2459. This extension MUST NOT be critical.

If the key ID representation is used, the bytes should be obtained using one of the following two methods:

  1. The SHA-1 hash of the bit-string value of the issuer certificate's subjectPublicKey (excluding the tag, length, and number of unused bits).
  2. A four bit type field with the value 0100 followed by the least significant 60 bits of the SHA-1 hash of the bit-string value of the issuer certificate's subjectPublicKey.

If the issuer/serial number representation is used, both the issuer and the serial number MUST be present.

See Also:
Serialized Form

Field Summary

 

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
AuthorityKeyIDExtension()
          Create a new extension with the appropriate OID type.
AuthorityKeyIDExtension(byte[] keyID)
          Creates a new extension with the specified authority key identifier.
AuthorityKeyIDExtension(byte[] keyID, boolean critical)
          Creates a new extension with the specified authority key identifier.
AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo)
          Creates a new extension with the specified authority certificate issuer and serial number.
AuthorityKeyIDExtension(GeneralName issuer, java.math.BigInteger serialNo, boolean critical)
          Creates a new extension with the specified authority certificate issuer and serial number.
AuthorityKeyIDExtension(java.io.InputStream is)
           
AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo)
          Creates a new extension with the specified authority certificate issuer and serial number.
AuthorityKeyIDExtension(java.util.List<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
          Creates a new extension with the specified authority certificate issuer and serial number.
AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo)
          Deprecated. Use AuthorityKeyIDExtension(List, BigInteger)
AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer, java.math.BigInteger serialNo, boolean critical)
          Deprecated. Use AuthorityKeyIDExtension(List, BigInteger, boolean)

 

Method Summary
 java.util.Enumeration<GeneralName> authorityCertIssuer()
          Deprecated. Use getAuthorityCertIssuer()
 java.util.ArrayList<GeneralName> getAuthorityCertIssuer()
          Deprecated.  
 java.math.BigInteger getAuthorityCertSerialNo()
          Gets the authority certificate serial number for this extension.
 byte[] getAuthorityKeyID()
          Gets the authority key ID for this extension.
 java.lang.String toString()
          Returns a string representation of this object.

 

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

 

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

 

Constructor Detail

AuthorityKeyIDExtension

public AuthorityKeyIDExtension()
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.


AuthorityKeyIDExtension

public AuthorityKeyIDExtension(byte[] keyID)
Creates a new extension with the specified authority key identifier. Extension is non-critical.
Parameters:
keyID - A byte[] containing the authority key identifier.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(byte[] keyID,
                               boolean critical)
Creates a new extension with the specified authority key identifier.
Parameters:
keyID - A byte[] containing the authority key identifier.
critical - true if this extension is critical, false otherwise.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(GeneralName issuer,
                               java.math.BigInteger serialNo)
Creates a new extension with the specified authority certificate issuer and serial number. Extension is non-critical.
Parameters:
issuer - The authority certificate issuer.
serialNo - The authority certificate serial number.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(GeneralName issuer,
                               java.math.BigInteger serialNo,
                               boolean critical)
Creates a new extension with the specified authority certificate issuer and serial number.
Parameters:
issuer - The authority certificate issuer.
serialNo - The authority certificate serial number.
critical - true if this extension is critical, false otherwise.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer,
                               java.math.BigInteger serialNo)
Deprecated. Use AuthorityKeyIDExtension(List, BigInteger)
Creates a new extension with the specified authority certificate issuer and serial number. Extension is non-critical.
Parameters:
issuer - A Vector of GeneralNames for the authority certificate issuer.
serialNo - The authority certificate serial number.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(java.util.List<GeneralName> issuer,
                               java.math.BigInteger serialNo)
Creates a new extension with the specified authority certificate issuer and serial number. Extension is non-critical.
Parameters:
issuer - A List of GeneralNames for the authority certificate issuer.
serialNo - The authority certificate serial number.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(java.util.Vector<GeneralName> issuer,
                               java.math.BigInteger serialNo,
                               boolean critical)
Deprecated. Use AuthorityKeyIDExtension(List, BigInteger, boolean)
Creates a new extension with the specified authority certificate issuer and serial number.
Parameters:
issuer - A Vector of GeneralNames for the authority certificate issuer.
serialNo - The authority certificate serial number.
critical - true if this extension is critical, false otherwise.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(java.util.List<GeneralName> issuer,
                               java.math.BigInteger serialNo,
                               boolean critical)
Creates a new extension with the specified authority certificate issuer and serial number.
Parameters:
issuer - A Vector of GeneralNames for the authority certificate issuer.
serialNo - The authority certificate serial number.
critical - true if this extension is critical, false otherwise.

AuthorityKeyIDExtension

public AuthorityKeyIDExtension(java.io.InputStream is)
                        throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getAuthorityKeyID

public byte[] getAuthorityKeyID()
Gets the authority key ID for this extension.
Returns:
The byte[] keyID, or null if the issuer and serial number representation is used.

authorityCertIssuer

public java.util.Enumeration<GeneralName> authorityCertIssuer()
Deprecated. Use getAuthorityCertIssuer()
Gets the authority certificate issuer of this extension.
Returns:
An Enumeration of GeneralNames representing the authority certificate issuer, or null if the keyID representation is used.

getAuthorityCertIssuer

public java.util.ArrayList<GeneralName> getAuthorityCertIssuer()
Deprecated. 
Gets the authority certificate issuer of this extension.
Returns:
An ArrayList of GeneralNames representing the authority certificate issuer, or null if the keyID representation is used.

getAuthorityCertSerialNo

public java.math.BigInteger getAuthorityCertSerialNo()
Gets the authority certificate serial number for this extension.
Returns:
The BigInteger serial number, or null if the keyID representation is used.

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

Skip navigation links

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

E10674-03


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