at.gv.egovernment.moa.spss.server.config
Class KeyGroupEntry

java.lang.Object
  |
  +--at.gv.egovernment.moa.spss.server.config.KeyGroupEntry

public class KeyGroupEntry
extends Object

A class containing information about an entry in a key group.

Version:
$Id$
Author:
Patrick Peck

Constructor Summary
KeyGroupEntry(String moduleID, IssuerAndSerial issuerAndSerial)
          Create a new KeyGroupEntry.
KeyGroupEntry(String moduleID, String issuerDN, BigInteger serialNumber)
          Create a new KeyGroupEntry.
 
Method Summary
 boolean equals(Object other)
          Compare this KeyGroupEntry to another.
 String getIssuerDN()
          Return the issuer DN of this KeyGroupEntry for identifying the certificate within the key module.
 String getModuleID()
          Return the key module ID to which this KeyGroupEntry belongs to.
 BigInteger getSerialNumber()
          Return the serial number of this KeyGroupEntry for identifying the certificate within the key module.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyGroupEntry

public KeyGroupEntry(String moduleID,
                     IssuerAndSerial issuerAndSerial)
Create a new KeyGroupEntry.
Parameters:
moduleID - The key module ID to which this entry belongs to.
issuerAndSerial - The issuer and serial number which uniquely identifies a certificate within the key module.

KeyGroupEntry

public KeyGroupEntry(String moduleID,
                     String issuerDN,
                     BigInteger serialNumber)
Create a new KeyGroupEntry.
Parameters:
moduleID - The key module ID to which this entry belongs to.
issuerDN - The isser DN of the certificate within the key module.
serialNumber - The serial number of the certificate within the key module.
Method Detail

getModuleID

public String getModuleID()
Return the key module ID to which this KeyGroupEntry belongs to.
Returns:
The key module ID.

getIssuerDN

public String getIssuerDN()
Return the issuer DN of this KeyGroupEntry for identifying the certificate within the key module.
Returns:
The issuer DN of the certificate.

getSerialNumber

public BigInteger getSerialNumber()
Return the serial number of this KeyGroupEntry for identifying the certificate within the key module.
Returns:
The serial number of the certificate.

equals

public boolean equals(Object other)
Compare this KeyGroupEntry to another.
Overrides:
equals in class Object
Parameters:
other - The KeyGroupEntry to compare to.
Returns:
true, if module ID, isser DN and serial number of other match the ones contained in this object, otherwise false.
See Also:
Object.equals(Object)

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()