|
Bouncy Castle Cryptography 1.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.openpgp.PGPPublicKey
general class to handle a PGP public key object.
Fields inherited from interface org.bouncycastle.bcpg.PublicKeyAlgorithmTags |
DIFFIE_HELLMAN,
DSA,
EC,
ECDSA,
ELGAMAL_ENCRYPT,
ELGAMAL_GENERAL,
RSA_ENCRYPT,
RSA_GENERAL,
RSA_SIGN |
Method Summary | |
void |
encode(java.io.OutputStream outStream)
|
int |
getAlgorithm()
Return the algorithm code associated with the public key. |
int |
getBitStrength()
Return the strength of the key in bits. |
java.util.Date |
getCreationTime()
|
byte[] |
getEncoded()
|
byte[] |
getFingerprint()
Return the 16 byte fingerprint of the key. |
java.security.PublicKey |
getKey(java.lang.String provider)
Return the public key contained in the object. |
long |
getKeyID()
Return the keyID associated with the public key. |
java.util.Iterator |
getSignaturesForID(java.lang.String id)
|
java.util.Iterator |
getUserAttributes()
Return any user attribute vectors associated with the key. |
java.util.Iterator |
getUserIDs()
Return any userIDs associated with the key. |
int |
getValidDays()
|
int |
getVersion()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public int getVersion()
public java.util.Date getCreationTime()
public int getValidDays()
public long getKeyID()
public byte[] getFingerprint()
public int getAlgorithm()
public int getBitStrength()
public java.security.PublicKey getKey(java.lang.String provider) throws PGPException, java.security.NoSuchProviderException
provider
- provider to construct the key for.public java.util.Iterator getUserIDs()
public java.util.Iterator getUserAttributes()
public java.util.Iterator getSignaturesForID(java.lang.String id)
public byte[] getEncoded() throws java.io.IOException
public void encode(java.io.OutputStream outStream) throws java.io.IOException
|
Bouncy Castle Cryptography 1.22 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |