All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.x509.extensions.AuthorityKeyIdentifier

java.lang.Object
   |
   +----iaik.x509.V3Extension
           |
           +----iaik.x509.extensions.AuthorityKeyIdentifier

public class AuthorityKeyIdentifier
extends V3Extension
This class implements the AuthorityKeyIdentifier Extension. The authority key identifier extension provides a means of identifying the particular public key used to sign a certificate. This extension would be used where an issuer has multiple signing keys (either due to multiple concurrent key pairs or due to changeover). In general, this extension should be included in certificates.


Constructor Index

 o AuthorityKeyIdentifier()
Default constructor.

Method Index

 o getGeneralName()
Returns the general name.
 o getKeyIdentifier()
Returns the key identifier.
 o getObjectID()
Returns the object ID of this extension
 o getSerialNumber()
Returns the serial number.
 o hashCode()
Returns a hashcode for this identity.
 o init(ASN1Object)
Inits this implementation of an extension with an ASN1Object.
 o setGeneralName(GeneralName)
Sets the general name.
 o setKeyIdentifier(byte[])
Sets the key identifier.
 o setSerialNumber(BigInteger)
Sets the serial number.
 o toASN1Object()
Returns the value of this extension as ASN1Object.
 o toString()
Returns a string that represents the contents of the extensions.

Constructors

 o AuthorityKeyIdentifier
 public AuthorityKeyIdentifier()
Default constructor. Creates an empty object.

Methods

 o getObjectID
 public ObjectID getObjectID()
Returns the object ID of this extension

Returns:
the object ID
Overrides:
getObjectID in class V3Extension
 o init
 public void init(ASN1Object obj) throws ExtensionException
Inits this implementation of an extension with an ASN1Object. The ASN1Object is the extensionValue from ASN.1 type "Extension". The ASN1Object is the one created by toASN1Object().

Parameters:
obj - the extensionValue as ASN1Object
Throws: ExtensionException
if the extension could not be parsed
Overrides:
init in class V3Extension
See Also:
toASN1Object
 o toASN1Object
 public ASN1Object toASN1Object() throws ExtensionException
Returns the value of this extension as ASN1Object. The ASN1Object is the extensionValue from ASN.1 type "Extension". The created ASN1Object is same, which is the parameter to method init.

Returns:
the value of the extension as ASN1Object
Throws: ExtensionException
if the extension could not be created
Overrides:
toASN1Object in class V3Extension
See Also:
init
 o setKeyIdentifier
 public void setKeyIdentifier(byte ki[])
Sets the key identifier.

Parameters:
ki - the key identifier
 o setGeneralName
 public void setGeneralName(GeneralName gn)
Sets the general name.

Parameters:
gn - the general name
 o setSerialNumber
 public void setSerialNumber(BigInteger sn)
Sets the serial number.

Parameters:
sn - the serial number
 o getKeyIdentifier
 public byte[] getKeyIdentifier()
Returns the key identifier.

Returns:
the key identifier
 o getGeneralName
 public GeneralName getGeneralName()
Returns the general name.

Returns:
the general name
 o getSerialNumber
 public BigInteger getSerialNumber()
Returns the serial number.

Returns:
the serial number
 o hashCode
 public int hashCode()
Returns a hashcode for this identity.

Returns:
a hash code for this identity
Overrides:
hashCode in class V3Extension
 o toString
 public String toString()
Returns a string that represents the contents of the extensions.

Returns:
the string representation
Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index