|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.cert.Certificate
|
+--webfunds.openpgp.cert.SimpleOpenPGPCertificate
Simple OpenPGP Certificate class.
Warning: this class is a hack, which will most likely disappear in favour of a proper implementation.
| Method Summary | |
byte[] |
getEncoded()
Returns the encoded publickey |
java.security.PublicKey |
getPublicKey()
Return the public key that is contained in this certificate |
java.lang.String |
toString()
Returns a human-readable string that is descriptive for this certificate. |
void |
verify(java.security.PublicKey key)
Verify that this certificate was signed with the given key |
void |
verify(java.security.PublicKey key,
java.lang.String sigProvider)
Braindamaged unsupported method |
| Methods inherited from class java.security.cert.Certificate |
equals,
getType,
hashCode |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Method Detail |
public void verify(java.security.PublicKey key)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
In case of multiple userID's, this method only succeeds if all userID's are signed using the given key.
key - the key to use for verification
public void verify(java.security.PublicKey key,
java.lang.String sigProvider)
throws java.security.cert.CertificateException,
java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException,
java.security.NoSuchProviderException,
java.security.SignatureException
Multiple OpenPGP providers, yeah right!
public byte[] getEncoded()
throws java.security.cert.CertificateEncodingException
This class uses the binary OpenPGP representation of it's public key
public java.security.PublicKey getPublicKey()
This always returns a cryptix.openpgp.PGPPublicKey
public java.lang.String toString()
For a certificate with one userID, this simply returns the userID. For multiple userID's, all userID's are concatenated in a special way.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||