com.croftsoft.core.util.cache.secure
Class SecureId

java.lang.Object
  extended by com.croftsoft.core.util.cache.secure.SecureId
All Implemented Interfaces:
Id, Serializable, Cloneable

public final class SecureId
extends Object
implements Id

A concrete Id implementation that uses a secure digest to verify identity.

Version:
2000-08-19
See Also:
j1d1.util.id.Id;, MessageDigest, Serialized Form
Author:
David Wallace Croft

Constructor Summary
SecureId(String algorithm, byte[] digest)
           
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 String getAlgorithm()
           
 byte[] getDigest()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecureId

public SecureId(String algorithm,
                byte[] digest)
Method Detail

getAlgorithm

public String getAlgorithm()

getDigest

public byte[] getDigest()

equals

public boolean equals(Object other)
Specified by:
equals in interface Id
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Id
Overrides:
hashCode in class Object

clone

public Object clone()
Specified by:
clone in interface Id
Overrides:
clone in class Object

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)