Class DecryptRequestObject
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.profile.action.AbstractConditionalProfileAction
-
- net.shibboleth.idp.profile.AbstractProfileAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction<com.nimbusds.openid.connect.sdk.AuthenticationRequest>
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
-
- net.shibboleth.idp.plugin.oidc.op.profile.impl.DecryptRequestObject
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction,Aware,MessageSource,MessageSourceAware,Action
public class DecryptRequestObject extends AbstractOIDCAuthenticationResponseAction
Action decrypts request object if it is encrypted. Decrypted object is updated to response context.
-
-
Field Summary
Fields Modifier and Type Field Description private Function<ProfileRequestContext,EncryptionContext>encryptionContextLookupStrategyStrategy used to look up theEncryptionContextto store parameters in.private org.slf4j.LoggerlogClass logger.private net.shibboleth.oidc.security.impl.OIDCDecryptionParametersparamsDecryption parameters for decrypting payload.private com.nimbusds.jwt.JWTrequestObjectRequest Object.
-
Constructor Summary
Constructors Constructor Description DecryptRequestObject()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.nimbusds.jwt.JWTdecryptRequestObject(com.nimbusds.jwt.EncryptedJWT encryptedObject)Decrypt request object.protected voiddoExecute(ProfileRequestContext profileRequestContext)protected booleandoPreExecute(ProfileRequestContext profileRequestContext)voidsetEncryptionContextLookupStrategy(Function<ProfileRequestContext,EncryptionContext> strategy)Set the strategy used to look up theEncryptionContextto set the flags for.-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationResponseAction
getMetadataContext, getOidcResponseContext
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCAuthenticationRequestAction
getAuthenticationRequest
-
Methods inherited from class net.shibboleth.idp.plugin.oidc.op.profile.impl.AbstractOIDCRequestAction
getRequest
-
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
-
log
@Nonnull private org.slf4j.Logger log
Class logger.
-
encryptionContextLookupStrategy
@Nonnull private Function<ProfileRequestContext,EncryptionContext> encryptionContextLookupStrategy
Strategy used to look up theEncryptionContextto store parameters in.
-
params
@Nullable private net.shibboleth.oidc.security.impl.OIDCDecryptionParameters params
Decryption parameters for decrypting payload.
-
requestObject
@Nullable private com.nimbusds.jwt.JWT requestObject
Request Object.
-
-
Method Detail
-
setEncryptionContextLookupStrategy
public void setEncryptionContextLookupStrategy(@Nonnull Function<ProfileRequestContext,EncryptionContext> strategy)Set the strategy used to look up theEncryptionContextto set the flags for.- Parameters:
strategy- lookup strategy
-
doPreExecute
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doPreExecutein classAbstractOIDCAuthenticationResponseAction
-
decryptRequestObject
private com.nimbusds.jwt.JWT decryptRequestObject(@Nonnull com.nimbusds.jwt.EncryptedJWT encryptedObject)Decrypt request object.- Parameters:
encryptedObject- request object to decrypt.- Returns:
- Decrypted request object. Null if decrypting failed.
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
-