|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XWikiX509KeyPair
Wrapper which contains a PrivateKey and the corresponding XWikiX509Certificate.
This class is capable of holding a chain of certificates from the user's certificate back to the root certificate.
| Field Summary | |
|---|---|
static java.lang.String |
BASE64_FOOTER
This will be at the end of the output from serializeAsBase64(). |
static java.lang.String |
BASE64_HEADER
This will be at the beginning of the output from serializeAsBase64(). |
| Method Summary | |
|---|---|
XWikiX509Certificate |
getCertificate()
Get the user's certificate. |
java.lang.String |
getFingerprint()
|
java.security.PrivateKey |
getPrivateKey(java.lang.String password)
Get the private key from the key pair. |
java.security.PublicKey |
getPublicKey()
|
byte[] |
serialize()
|
java.lang.String |
serializeAsBase64()
|
| Field Detail |
|---|
static final java.lang.String BASE64_HEADER
serializeAsBase64().
static final java.lang.String BASE64_FOOTER
serializeAsBase64().
| Method Detail |
|---|
XWikiX509Certificate getCertificate()
RuntimeException if the key pair was deserialized directly using
Java deserialization methods without checking that the certificate can be deserialized.
java.security.PublicKey getPublicKey()
java.security.PrivateKey getPrivateKey(java.lang.String password)
throws java.security.GeneralSecurityException
password - the password needed to decrypt the private key.
java.security.GeneralSecurityException - if the private key cannot be decrypted.java.lang.String getFingerprint()
byte[] serialize()
throws java.io.IOException
java.io.IOException - if something goes wrong within the serialization framework.
java.lang.String serializeAsBase64()
throws java.io.IOException
serialize()d and converted to a base-64 encoded String.
java.io.IOException - if something goes wrong within the serialization framework.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||