Interface KeyStoreAccess
-
- All Known Implementing Classes:
KeyStoreAccessImpl
public interface KeyStoreAccess
Interface which provides access toKeyStore
functionality.- Since:
- 2020.04.001
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Certificate
getCertificate(String alias)
Loads thePublicKey
for the givenalias
.PrivateKey
getPrivateKey(String alias)
Loads thePrivateKey
for the givenalias
using the same password as for keystore.PrivateKey
getPrivateKey(String alias, char[] password)
Loads thePrivateKey
for the givenalias
.default PublicKey
getPublicKey(String alias)
Loads thePublicKey
for the givenalias
.
-
-
-
Method Detail
-
getCertificate
Certificate getCertificate(String alias)
Loads thePublicKey
for the givenalias
.
-
getPrivateKey
PrivateKey getPrivateKey(String alias)
Loads thePrivateKey
for the givenalias
using the same password as for keystore.- Parameters:
alias
- the alias of thePrivateKey
.- Returns:
- the requested
PrivateKey
.
-
getPrivateKey
PrivateKey getPrivateKey(String alias, char[] password)
Loads thePrivateKey
for the givenalias
.- Parameters:
alias
- the alias of thePrivateKey
.password
- the password thePrivateKey
is encrypted with.- Returns:
- the requested
PrivateKey
.
-
-