edu.stanford.rt.credential
Class PublicKeyPrincipal

java.lang.Object
  |
  +--edu.stanford.rt.credential.Principal
        |
        +--edu.stanford.rt.credential.PublicKeyPrincipal
All Implemented Interfaces:
PrincipalExpression, java.io.Serializable

public class PublicKeyPrincipal
extends Principal

Author:
Ninghui Li, Sandra Qiu
This class handles Principal element which consists of ds:KeyValue. Instead of storing the key vlaue, we store the hashValue of the key value. The key value is stored in PublicKeyPrincipalInfo.
See Also:
Serialized Form

Field Summary
private  java.lang.String hashValue
          Hash value for the public key stored in this principal
 
Constructor Summary
PublicKeyPrincipal(java.lang.String hashValue)
          Contructor of PublicKeyPrincipal
 
Method Summary
 boolean equals(java.lang.Object principal)
           
 int hashCode()
           
 java.lang.String toString(java.lang.String indent)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hashValue

private java.lang.String hashValue
Hash value for the public key stored in this principal

Constructor Detail

PublicKeyPrincipal

public PublicKeyPrincipal(java.lang.String hashValue)
Contructor of PublicKeyPrincipal

Method Detail

equals

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

hashCode

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

toString

public java.lang.String toString(java.lang.String indent)
Specified by:
toString in interface PrincipalExpression
Overrides:
toString in class Principal