|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcryptix.openpgp.PGPKey
OpenPGP Key.
Field Summary |
Fields inherited from interface java.security.Key |
serialVersionUID |
Constructor Summary | |
protected |
PGPKey(cryptix.openpgp.packet.PGPKeyPacket pkt,
java.lang.String algorithm)
Constructor that takes a packet and a format string. |
Method Summary | |
boolean |
equals(java.lang.Object other)
Returns if two PGPKeys are equal |
java.lang.String |
getAlgorithm()
Returns the algorithm of this key. |
int |
getBitLength()
Return the bitlength of this key |
byte[] |
getEncoded()
Returns this key in encoded form. |
java.lang.String |
getFormat()
Returns the format of this key. |
cryptix.openpgp.packet.PGPKeyPacket |
getPacket()
Return the contained keypacket Note: packets are part of the low-level API. |
boolean |
isLegacy()
Returns whether this is a legacy key |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PGPKey(cryptix.openpgp.packet.PGPKeyPacket pkt, java.lang.String algorithm)
pkt
- the packet that contains the data for this key.algorithm
- the string to be returned by the getAlgorithm() method.Method Detail |
public byte[] getEncoded()
Note: this just returns the key itself, without any userid's or certificates. See KeyBundle for that functionality.
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
Always returns "OpenPGP".
getFormat
in interface java.security.Key
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
public boolean equals(java.lang.Object other)
public int getBitLength()
public cryptix.openpgp.packet.PGPKeyPacket 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 isLegacy()
|
Cryptix OpenPGP | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |