|
||||||||||
| 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 String |
BASE64_FOOTER
This will be at the end of the output from serializeAsBase64(). |
static String |
BASE64_HEADER
This will be at the beginning of the output from serializeAsBase64(). |
| Method Summary | |
|---|---|
XWikiX509Certificate |
getCertificate()
Get the user's certificate. |
String |
getFingerprint()
|
PrivateKey |
getPrivateKey(String password)
Get the private key from the key pair. |
PublicKey |
getPublicKey()
|
byte[] |
serialize()
|
String |
serializeAsBase64()
|
| Field Detail |
|---|
static final String BASE64_HEADER
serializeAsBase64().
static final 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.
PublicKey getPublicKey()
PrivateKey getPrivateKey(String password)
throws GeneralSecurityException
password - the password needed to decrypt the private key.
GeneralSecurityException - if the private key cannot be decrypted.String getFingerprint()
byte[] serialize()
throws IOException
IOException - if something goes wrong within the serialization framework.
String serializeAsBase64()
throws IOException
serialize()d and converted to a base-64 encoded String.
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 | |||||||||