Package net.shibboleth.idp.admin.impl
Class UnlockDataSealers
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
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
FieldsModifier and TypeFieldDescriptionstatic final StringName of key password parameter.static final StringName of keystore password parameter.private Collection<BasicKeystoreKeyStrategy>Key source(s) to operate on.private org.slf4j.LoggerClass logger. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, getBean, getBean, getMessage, getMessage, getMessage, getParameter, getParameter, getProfileContextLookupStrategy, getRequestContext, getResult, setMessageSource, setProfileContextLookupStrategyMethods inherited from class org.opensaml.profile.action.AbstractConditionalProfileAction
getActivationCondition, setActivationConditionMethods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, ensureHttpServletRequest, ensureHttpServletResponse, execute, getHttpServletRequest, getHttpServletRequestSupplier, getHttpServletResponse, getHttpServletResponseSupplier, getLogPrefix, isPreExecuteCalled, setHttpServletRequestSupplier, setHttpServletResponseSupplierMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, doInitialize, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.InitializableComponent
initialize, isInitialized
-
Field Details
-
KEYSTORE_PASSWORD_PARAM_NAME
Name of keystore password parameter.- See Also:
-
KEY_PASSWORD_PARAM_NAME
Name of key password parameter.- See Also:
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
keyStrategies
Key source(s) to operate on.
-
-
Constructor Details
-
UnlockDataSealers
public UnlockDataSealers()Constructor.
-
-
Method Details
-
setKeyStrategies
Set theBasicKeystoreKeyStrategyobjects to inject passwords into.- Parameters:
strategies- objects to unlock
-
doPreExecute
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
- Overrides:
doExecutein classAbstractProfileAction
-