Package net.shibboleth.idp.admin.impl
Class UnlockDataSealers
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class UnlockDataSealers extends AbstractProfileAction
Action that sets keystore and key passwords for one or more DataSealer KeyStrategy objects based on query parameters.The only type supported is the basic strategy type provided with the software.
An error event will be signaled after the first unsuccessful unlock operation.
- Since:
- 3.4.0
- Event:
EventIds.PROCEED_EVENT_ID,EventIds.INVALID_PROFILE_CTX,EventIds.INVALID_MESSAGE
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY_PASSWORD_PARAM_NAMEName of key password parameter.static StringKEYSTORE_PASSWORD_PARAM_NAMEName of keystore password parameter.private Collection<BasicKeystoreKeyStrategy>keyStrategiesKey source(s) to operate on.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description UnlockDataSealers()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetKeyStrategies(Collection<BasicKeystoreKeyStrategy> strategies)Set theBasicKeystoreKeyStrategyobjects to inject passwords into.-
Methods inherited from class net.shibboleth.idp.profile.AbstractProfileAction
doExecute, execute, getMessage, getMessage, getMessage, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationCondition
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Field Detail
-
KEYSTORE_PASSWORD_PARAM_NAME
@Nonnull @NotEmpty public static final String KEYSTORE_PASSWORD_PARAM_NAME
Name of keystore password parameter.- See Also:
- Constant Field Values
-
KEY_PASSWORD_PARAM_NAME
@Nonnull @NotEmpty public static final String KEY_PASSWORD_PARAM_NAME
Name of key password parameter.- See Also:
- Constant Field Values
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
keyStrategies
@Nonnull @NonnullElements private Collection<BasicKeystoreKeyStrategy> keyStrategies
Key source(s) to operate on.
-
-
Method Detail
-
setKeyStrategies
public void setKeyStrategies(@Nullable @NonnullElements Collection<BasicKeystoreKeyStrategy> strategies)
Set theBasicKeystoreKeyStrategyobjects to inject passwords into.- Parameters:
strategies- objects to unlock
-
doPreExecute
protected boolean doPreExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doExecutein classAbstractProfileAction
-
-