@ParametersAreNonnullByDefault
@ReturnValuesAreNonnullByDefault
public interface KeyStore
A key store may choose whether to allow the updating of existing keys.
Modifier and Type | Method and Description |
---|---|
@Nullable KeyPair |
getKeyPair(String alias)
Returns a key pair for a specified alias.
|
@Nullable PrivateKey |
getPrivateKey(String alias) |
@Nullable PublicKey |
getPublicKey(String alias) |
void |
storeKeyPair(String alias,
KeyPair keyPair)
Stores a key pair against a key alias.
|
void |
storePublicKey(String alias,
@Nullable PublicKey publicKey)
Stores a public key against a key alias.
|
@Nullable PrivateKey getPrivateKey(String alias)
alias
- Key alias@Nullable PublicKey getPublicKey(String alias)
alias
- Key alias@Nullable KeyPair getKeyPair(String alias)
alias
- Key aliasvoid storeKeyPair(String alias, KeyPair keyPair)
alias
- Key aliaskeyPair
- Key pair to storeCopyright © 2003–2021 Atlassian. All rights reserved.