edu.vt.middleware.crypt.x509.types
Class AuthorityKeyIdentifier

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.types.AuthorityKeyIdentifier

public class AuthorityKeyIdentifier
extends Object

Representation of the AuthorityKeyIdentifier type defined in section 4.2.1.1 of RFC 2459.

Version:
$Revision: 2745 $
Author:
Middleware Services

Constructor Summary
AuthorityKeyIdentifier()
          Creates an empty authority key identifier.
AuthorityKeyIdentifier(KeyIdentifier id)
          Creates a new instance with the given key identifier.
AuthorityKeyIdentifier(KeyIdentifier id, GeneralNameList issuerNames, Integer issuerSerial)
          Creates a new instance with all fields defined.
 
Method Summary
 boolean equals(Object obj)
          
 GeneralNameList getAuthorityCertIssuer()
           
 Integer getAuthorityCertSerialNumber()
           
 KeyIdentifier getKeyIdentifier()
           
 int hashCode()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorityKeyIdentifier

public AuthorityKeyIdentifier()
Creates an empty authority key identifier. Although this is technically supported by RFC 2459, an empty authority key identifier is meaningless. We support it here to be strictly conformant with the RFC.


AuthorityKeyIdentifier

public AuthorityKeyIdentifier(KeyIdentifier id)
Creates a new instance with the given key identifier.

Parameters:
id - Issuer public key identifier.

AuthorityKeyIdentifier

public AuthorityKeyIdentifier(KeyIdentifier id,
                              GeneralNameList issuerNames,
                              Integer issuerSerial)
Creates a new instance with all fields defined.

Parameters:
id - Issuer public key identifier; may be null.
issuerNames - General names of the certificate issuer; may be null.
issuerSerial - Serial number of issuer certificate; may be null.
Method Detail

getKeyIdentifier

public KeyIdentifier getKeyIdentifier()
Returns:
Key identifier of issuer public key matching private key used to sign the certificate.

getAuthorityCertIssuer

public GeneralNameList getAuthorityCertIssuer()
Returns:
General names by which issuer is known.

getAuthorityCertSerialNumber

public Integer getAuthorityCertSerialNumber()
Returns:
Issuer certificate serial number.

toString

public String toString()
Overrides:
toString in class Object
Returns:
String representation containing the ExplicitText and NoticeReference fields.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


Copyright © 2003-2013 Virginia Tech. All Rights Reserved.