Package net.shibboleth.idp.admin.impl
Class UnlockPrivateKeys
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class UnlockPrivateKeys extends AbstractProfileAction
Action that creates private key objects and injects them into existingMutableCredentialobjects.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 private Collection<MutableCredential>credentialsCredentials to operate on.static StringKEY_PASSWORD_PARAM_NAMEName of private key password parameter.private Collection<Resource>keyResourcesKeys to load.private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description UnlockPrivateKeys()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)protected voiddoInitialize()protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetCredentials(Collection<MutableCredential> creds)Set the credentials to load keys into.voidsetKeyResources(Collection<Resource> keys)Set the key resources to load.-
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, 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
-
KEY_PASSWORD_PARAM_NAME
@Nonnull @NotEmpty public static final String KEY_PASSWORD_PARAM_NAME
Name of private key password parameter.- See Also:
- Constant Field Values
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
credentials
@Nonnull @NonnullElements private Collection<MutableCredential> credentials
Credentials to operate on.
-
keyResources
@Nonnull @NonnullElements private Collection<Resource> keyResources
Keys to load.
-
-
Method Detail
-
setCredentials
public void setCredentials(@Nullable @NonnullElements Collection<MutableCredential> creds)
Set the credentials to load keys into.- Parameters:
creds- credentials to load keys into
-
setKeyResources
public void setKeyResources(@Nullable @NonnullElements Collection<Resource> keys)
Set the key resources to load.- Parameters:
keys- key resources to load
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
doPreExecute
protected boolean doPreExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doPreExecutein classAbstractConditionalProfileAction
-
doExecute
protected void doExecute(ProfileRequestContext profileRequestContext)
- Overrides:
doExecutein classAbstractProfileAction
-
-