public abstract class AbstractServerKeyManagerConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.adorsys.jjwk.serverkey.ServerKeyManager |
serverKeyManager |
| Constructor and Description |
|---|
AbstractServerKeyManagerConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FsPersistenceFactory |
getFsPersistenceFactory() |
abstract org.adorsys.jjwk.serverkey.ServerKeyManager |
getServerKeyManager()
Implementation shall declare this as Spring Bean to allow injection in other beans.
|
protected void |
initServerKeyManager(String appName)
Read the masterId and master password from environment properties.
|
static org.adorsys.jkeygen.keystore.SecretKeyEntry |
newSecretKey(String alias,
CallbackHandler secretKeyPassHandler) |
protected org.adorsys.jjwk.serverkey.ServerKeyManager serverKeyManager
public abstract org.adorsys.jjwk.serverkey.ServerKeyManager getServerKeyManager()
protected abstract FsPersistenceFactory getFsPersistenceFactory()
protected void initServerKeyManager(String appName)
If this information is not available, we will generate it and store it a a common location where all server can read.
In order for the server to be restarted, we will need those information either as part of the environment properties, or available on a dedicated file system.
public static org.adorsys.jkeygen.keystore.SecretKeyEntry newSecretKey(String alias, CallbackHandler secretKeyPassHandler)
Copyright © 2018. All Rights Reserved.