Constructor and Description |
---|
HibernateKeyStoreDao(org.hibernate.SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
@Nullable KeyPair |
getKeyPair(String alias)
Returns a key pair for a specified alias.
|
PrivateKey |
getPrivateKey(String alias) |
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.
|
public HibernateKeyStoreDao(org.hibernate.SessionFactory sessionFactory)
public PrivateKey getPrivateKey(String alias)
getPrivateKey
in interface KeyStore
alias
- Key aliaspublic PublicKey getPublicKey(String alias)
getPublicKey
in interface KeyStore
alias
- Key aliaspublic @Nullable KeyPair getKeyPair(String alias)
KeyStore
getKeyPair
in interface KeyStore
alias
- Key aliaspublic void storeKeyPair(String alias, KeyPair keyPair)
KeyStore
storeKeyPair
in interface KeyStore
alias
- Key aliaskeyPair
- Key pair to storepublic void storePublicKey(String alias, @Nullable PublicKey publicKey)
KeyStore
storePublicKey
in interface KeyStore
alias
- Key aliaspublicKey
- Key pair to storeCopyright © 2003–2020 Atlassian. All rights reserved.