Package org.cyclos.impl.access
Class IdentityProviderContext
- java.lang.Object
-
- org.cyclos.impl.access.IdentityProviderContext
-
public class IdentityProviderContext extends Object
Holds the context for the execution of an identity provider operation
-
-
Constructor Summary
Constructors Constructor Description IdentityProviderContext(String requestId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pac4j.core.client.IndirectClientclient(RequestInfo requestInfo)Returns a corresponding Pac4j client for the given requestIdentityProviderContextdestroyRequest()Removes the request state from the shared storageCallbackResulterror(MessageKey key, Object... args)Returns a callback result for the given errorCallbackResulterror(MessageKey key, Consumer<IdentityProviderCallbackResult> customizer, Object... args)Returns a callback result for the given error, allowing customizing the resultChannelgetChannel()ConfigurationgetConfiguration()UserGroupgetGroup()IdentityProvidergetIdentityProvider()IdentityProviderVOgetIdentityProviderVO()NetworkgetNetwork()org.pac4j.core.profile.CommonProfilegetProfile()Returns the Pac4J profile in the requestIdentityProviderRequestgetRequest()RequestDatagetRequestData()StringgetRequestId()SessiongetSession()org.pac4j.core.context.session.SessionStoregetSessionStore()IdentityProviderRequestTypegetType()org.pac4j.core.context.WebContextgetWebContext(RequestInfo request, ResponseInfo response)Returns the Pac4j web contextCustomWizardExecutiongetWizardExecution()voidinitialize()booleanisRequestDestroyed()CallbackResultresult(IdentityProviderCallbackStatus status)Returns a callback result with the given statusCallbackResultresult(IdentityProviderCallbackStatus status, Consumer<IdentityProviderCallbackResult> customizer)Returns a callback result with the given status, allowing customizing the resultvoidstoreProfile(org.pac4j.core.profile.CommonProfile profile)Sets the Pac4j profile returned from the providerbooleanvalid()Returns whether the current request is valid
-
-
-
Constructor Detail
-
IdentityProviderContext
public IdentityProviderContext(String requestId)
-
-
Method Detail
-
client
public org.pac4j.core.client.IndirectClient client(RequestInfo requestInfo)
Returns a corresponding Pac4j client for the given request
-
destroyRequest
public IdentityProviderContext destroyRequest()
Removes the request state from the shared storage
-
error
public CallbackResult error(MessageKey key, Consumer<IdentityProviderCallbackResult> customizer, Object... args)
Returns a callback result for the given error, allowing customizing the result
-
error
public CallbackResult error(MessageKey key, Object... args)
Returns a callback result for the given error
-
getChannel
public Channel getChannel()
-
getConfiguration
public Configuration getConfiguration()
-
getGroup
public UserGroup getGroup()
-
getIdentityProvider
public IdentityProvider getIdentityProvider()
-
getIdentityProviderVO
public IdentityProviderVO getIdentityProviderVO()
-
getNetwork
public Network getNetwork()
-
getProfile
public org.pac4j.core.profile.CommonProfile getProfile()
Returns the Pac4J profile in the request
-
getRequest
public IdentityProviderRequest getRequest()
-
getRequestData
public RequestData getRequestData()
-
getRequestId
public String getRequestId()
-
getSession
public Session getSession()
-
getSessionStore
public org.pac4j.core.context.session.SessionStore getSessionStore()
-
getType
public IdentityProviderRequestType getType()
-
getWebContext
public org.pac4j.core.context.WebContext getWebContext(RequestInfo request, ResponseInfo response)
Returns the Pac4j web context
-
getWizardExecution
public CustomWizardExecution getWizardExecution()
-
initialize
@PostConstruct public void initialize()
-
isRequestDestroyed
public boolean isRequestDestroyed()
-
result
public CallbackResult result(IdentityProviderCallbackStatus status)
Returns a callback result with the given status
-
result
public CallbackResult result(IdentityProviderCallbackStatus status, Consumer<IdentityProviderCallbackResult> customizer)
Returns a callback result with the given status, allowing customizing the result
-
storeProfile
public void storeProfile(org.pac4j.core.profile.CommonProfile profile)
Sets the Pac4j profile returned from the provider
-
valid
public boolean valid()
Returns whether the current request is valid
-
-