|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.silverpeas.util.crypto.PKS12KeyStore
public class PKS12KeyStore
A key store of the public and secret keys, and of the X509 certificate in a PKS infrastructure.
The PKS (Public-Key Cryptography Standards) is a group of standards in cryptography that are under the control of the the RSA Security company. The standards promote a cryptographic infrastructure for the identification of users, the signature and the exchange of data. The format used to store the private key and the public key certificate is described in the PKS#12 specification written by the RSA Security company in California.
Constructor Summary | |
---|---|
PKS12KeyStore(String p12FilePath,
String password)
Constructs a new PKS#12 key store from the specified key store file. |
Method Summary | |
---|---|
X509Certificate |
getCertificate()
Gets the X509 certificate in this PKS#12 key store. |
PrivateKey |
getPrivatekey()
Gets the private key in this PKS#12 key store. |
PublicKey |
getPublickey()
Gets the public key in this PKS#12 key store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PKS12KeyStore(String p12FilePath, String password) throws KeyStoreException, CryptoException
p12FilePath
- the path of the PKS#12 key store file.password
- the password which protects the key store file.
KeyStoreException
- if an error occurs while opening the PKS#12 key store file.
FileNotFoundException
- if the PKS#12 key store file doesn't exist.
CryptoException
- if an error occurs while loading the keys and the certificate from
the PKS#12 key store file.Method Detail |
---|
public X509Certificate getCertificate()
public PrivateKey getPrivatekey()
public PublicKey getPublickey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |