Class KeyStoreAccessImpl
- java.lang.Object
-
- com.devonfw.module.security.keystore.common.impl.KeyStoreAccessImpl
-
- All Implemented Interfaces:
KeyStoreAccess
@Named public class KeyStoreAccessImpl extends Object implements KeyStoreAccess
Implementation ofKeyStoreAccess
- Since:
- 2020.04.001
-
-
Constructor Summary
Constructors Constructor Description KeyStoreAccessImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.devonfw.module.security.keystore.common.api.KeyStoreAccess
getPublicKey
-
-
-
-
Method Detail
-
getCertificate
public Certificate getCertificate(String alias)
Description copied from interface:KeyStoreAccess
Loads thePublicKey
for the givenalias
.- Specified by:
getCertificate
in interfaceKeyStoreAccess
- Parameters:
alias
- the alias of thePublicKey
.- Returns:
- the requested
PublicKey
-
getPrivateKey
public PrivateKey getPrivateKey(String alias)
Description copied from interface:KeyStoreAccess
Loads thePrivateKey
for the givenalias
using the same password as for keystore.- Specified by:
getPrivateKey
in interfaceKeyStoreAccess
- Parameters:
alias
- the alias of thePrivateKey
.- Returns:
- the requested
PrivateKey
.
-
getPrivateKey
public PrivateKey getPrivateKey(String alias, char[] password)
Description copied from interface:KeyStoreAccess
Loads thePrivateKey
for the givenalias
.- Specified by:
getPrivateKey
in interfaceKeyStoreAccess
- Parameters:
alias
- the alias of thePrivateKey
.password
- the password thePrivateKey
is encrypted with.- Returns:
- the requested
PrivateKey
.
-
-