|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.openpgp.PGPPrincipal
OpenPGP Principal.
Constructor Summary | |
protected |
PGPPrincipal(cryptix.openpgp.packet.PGPIDPacket pkt)
Constructor that takes a packet |
Method Summary | |
boolean |
equals(java.lang.Object another)
Compares this principal to another one. |
byte[] |
getEncoded()
Return the encoded representation of this principal. |
java.lang.String |
getName()
Returns the name of this principal as a String. |
cryptix.openpgp.packet.PGPIDPacket |
getPacket()
Return the contained packet Note: packets are part of the low-level API. |
int |
hashCode()
Returns a hashcode for this principal Default implementation: returns the hashcode of the contained packet. |
java.lang.String |
toString()
Returns a string representation of this principal. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected PGPPrincipal(cryptix.openpgp.packet.PGPIDPacket pkt)
pkt
- the packet that contains the data for this principal.Method Detail |
public byte[] getEncoded()
public cryptix.openpgp.packet.PGPIDPacket getPacket()
Note: packets are part of the low-level API. Normally you don't need to use this method as other options are available.
public boolean equals(java.lang.Object another)
Default implementation: principals are considered equal if their packets are equal.
equals
in interface java.security.Principal
public int hashCode()
Default implementation: returns the hashcode of the contained packet.
hashCode
in interface java.security.Principal
public java.lang.String getName()
Default implementation: returns the result of the toString() method on the contained packet.
getName
in interface java.security.Principal
public java.lang.String toString()
Default implementation: returns the result of the getName() method.
toString
in interface java.security.Principal
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |