public class JcaKeyStoreHandler extends Object implements KeyStoreHandler
Constructor and Description |
---|
JcaKeyStoreHandler(String type,
String location,
String password)
Creates a new keystore handler.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocation()
Returns the path to the keystore.
|
String |
getPassword()
Returns the password.
|
KeyStore |
getStore()
Get the keystore.
|
String |
getType()
Returns the type of the keystore.
|
void |
setStore(KeyStore keystore)
Sets the keystore.
|
void |
store()
Saves the keystore.
|
public JcaKeyStoreHandler(String type, String location, String password) throws Exception
type
- The type of keystorelocation
- The path of the keystorepassword
- The password to access the keystoreException
- If an error occurs while initialising the keystorepublic KeyStore getStore()
KeyStoreHandler
getStore
in interface KeyStoreHandler
public void setStore(KeyStore keystore) throws Exception
KeyStoreHandler
setStore
in interface KeyStoreHandler
keystore
- The keystore to useException
- If an error occurspublic void store() throws Exception
KeyStoreHandler
store
in interface KeyStoreHandler
Exception
- If an error occurs.public String getPassword()
KeyStoreHandler
getPassword
in interface KeyStoreHandler
public String getLocation()
KeyStoreHandler
getLocation
in interface KeyStoreHandler
public String getType()
KeyStoreHandler
getType
in interface KeyStoreHandler
Copyright © 2025 Open Identity Platform Community. All rights reserved.