edu.stanford.rt.credential
Class HashID

java.lang.Object
  |
  +--edu.stanford.rt.credential.HashID

public class HashID
extends java.lang.Object

Author:
Ninghui Li, Sandra Qiu
HashID is the identifier of a DomainSpecification element. It is represented by the "id" attribute of the element.

Field Summary
static int APPLICATION_DOMAIN
          ApplicationDomain type of hash id
static int CREDENTIAL_DOMAIN
          CredentialDomain type of hash id
private  int hashType
          type of the hash id.
private  java.lang.String hashValue
          the hash value for the element.
 
Constructor Summary
HashID(int hashType, java.lang.String hashValue)
          Constructor for HashID
 
Method Summary
 boolean equals(java.lang.Object id)
           
 int getHashType()
          Returns the hashType.
 java.lang.String getHashValue()
          Returns the hashValue.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

APPLICATION_DOMAIN

public static final int APPLICATION_DOMAIN
ApplicationDomain type of hash id

See Also:
Constant Field Values

CREDENTIAL_DOMAIN

public static final int CREDENTIAL_DOMAIN
CredentialDomain type of hash id

See Also:
Constant Field Values

hashValue

private java.lang.String hashValue
the hash value for the element.


hashType

private int hashType
type of the hash id.

Constructor Detail

HashID

public HashID(int hashType,
              java.lang.String hashValue)
Constructor for HashID

Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object id)
Overrides:
equals in class java.lang.Object

getHashType

public int getHashType()
Returns the hashType.

Returns:
int

getHashValue

public java.lang.String getHashValue()
Returns the hashValue.

Returns:
String

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object