|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface KeyStore
A simple keystore supporting the retrieval and storage of public keys and public/private key pairs. A key store may choose whether to allow the updating of existing keys.
Method Summary | |
---|---|
java.security.KeyPair |
getKeyPair(java.lang.String alias)
Returns a key pair for a specified alias. |
java.security.PrivateKey |
getPrivateKey(java.lang.String alias)
|
java.security.PublicKey |
getPublicKey(java.lang.String alias)
|
void |
storeKeyPair(java.lang.String alias,
java.security.KeyPair keyPair)
Stores a key pair against a key alias. |
void |
storePublicKey(java.lang.String alias,
java.security.PublicKey publicKey)
Stores a public key against a key alias. |
Method Detail |
---|
java.security.PrivateKey getPrivateKey(java.lang.String alias)
alias
- Key alias
java.security.PublicKey getPublicKey(java.lang.String alias)
alias
- Key alias
java.security.KeyPair getKeyPair(java.lang.String alias)
alias
- Key alias
void storeKeyPair(java.lang.String alias, java.security.KeyPair keyPair)
alias
- Key aliaskeyPair
- Key pair to storevoid storePublicKey(java.lang.String alias, java.security.PublicKey publicKey)
alias
- Key aliaspublicKey
- Key pair to store
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |