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

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

public class KeyIdentifier
extends Object

Friendly representation of an OCTET STRING representing key identifier data as described in section 4.2.1.1 of RFC 2459.

Version:
$Revision: 427 $
Author:
Middleware Services

Constructor Summary
KeyIdentifier(byte[] id)
          Creates a new key identifier with the given identifier bytes.
KeyIdentifier(String fingerprint)
          Creates a new key identifier with the given key identifier fingerprint.
 
Method Summary
 boolean equals(Object obj)
          
 byte[] getIdentifier()
           
 int hashCode()
          
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyIdentifier

public KeyIdentifier(byte[] id)
Creates a new key identifier with the given identifier bytes.

Parameters:
id - Key identifier bytes.

KeyIdentifier

public KeyIdentifier(String fingerprint)
Creates a new key identifier with the given key identifier fingerprint.

Parameters:
fingerprint - Key identifier fingerprint, e.g., 25:48:2F:28:EC:5D:19:BB:1D:25:AE:94:93:B1:7B:B5:35:96:24:66.
Method Detail

getIdentifier

public byte[] getIdentifier()
Returns:
Key identifier bytes.

toString

public String toString()
Overrides:
toString in class Object
Returns:
Key identifier bytes as a hex fingerprint where each pair of hex digits are separated by colons.

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object


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