public class OpenIdConnectModule extends Object implements org.forgerock.caf.authentication.api.AsyncServerAuthModule
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_TIMEOUT_KEY
Lookup key for the configured HTTP connection's connection timeout for this module.
|
static String |
HEADER_KEY
Lookup key for the configured HTTP header used by this module to locate JWSs.
|
static String |
READ_TIMEOUT_KEY
Lookup key for the configured HTTP connection's read timeout for this module.
|
static String |
RESOLVERS_KEY
Lookup key for the configured resolvers which will be used by this module.
|
| Constructor and Description |
|---|
OpenIdConnectModule()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.util.promise.Promise<Void,org.forgerock.caf.authentication.api.AuthenticationException> |
cleanSubject(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo,
Subject subject)
Nothing to clean.
|
String |
getModuleId() |
Collection<Class<?>> |
getSupportedMessageTypes() |
org.forgerock.util.promise.Promise<Void,org.forgerock.caf.authentication.api.AuthenticationException> |
initialize(javax.security.auth.message.MessagePolicy requestPolicy,
javax.security.auth.message.MessagePolicy responsePolicy,
CallbackHandler callbackHandler,
Map<String,Object> config) |
org.forgerock.util.promise.Promise<javax.security.auth.message.AuthStatus,org.forgerock.caf.authentication.api.AuthenticationException> |
secureResponse(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo,
Subject subject)
Sends SEND_SUCCESS automatically.
|
org.forgerock.util.promise.Promise<javax.security.auth.message.AuthStatus,org.forgerock.caf.authentication.api.AuthenticationException> |
validateRequest(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo,
Subject clientSubject,
Subject serviceSubject)
Attempts to retrieve the value of the specified OpenID Connect header from the messageInfo, then
converts this to a Jwt and attempts to decrypt.
|
public static final String READ_TIMEOUT_KEY
public static final String CONNECTION_TIMEOUT_KEY
public static final String HEADER_KEY
public static final String RESOLVERS_KEY
public OpenIdConnectModule()
public String getModuleId()
getModuleId in interface org.forgerock.caf.authentication.api.AsyncServerAuthModulepublic org.forgerock.util.promise.Promise<Void,org.forgerock.caf.authentication.api.AuthenticationException> initialize(javax.security.auth.message.MessagePolicy requestPolicy, javax.security.auth.message.MessagePolicy responsePolicy, CallbackHandler callbackHandler, Map<String,Object> config)
initialize in interface org.forgerock.caf.authentication.api.AsyncServerAuthModulepublic org.forgerock.util.promise.Promise<javax.security.auth.message.AuthStatus,org.forgerock.caf.authentication.api.AuthenticationException> validateRequest(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo, Subject clientSubject, Subject serviceSubject)
OpenIdResolver interface
to ensure that we are the intended audience, the token has not expired and the issuer was an expected source.
If all of these validate, we return SUCCESS, otherwise SEND_FAILURE.validateRequest in interface org.forgerock.caf.authentication.api.AsyncServerAuthModulemessageInfo - clientSubject - serviceSubject - public org.forgerock.util.promise.Promise<javax.security.auth.message.AuthStatus,org.forgerock.caf.authentication.api.AuthenticationException> secureResponse(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo, Subject subject)
secureResponse in interface org.forgerock.caf.authentication.api.AsyncServerAuthModulemessageInfo - subject - javax.security.auth.message.AuthExceptionpublic org.forgerock.util.promise.Promise<Void,org.forgerock.caf.authentication.api.AuthenticationException> cleanSubject(org.forgerock.caf.authentication.api.MessageInfoContext messageInfo, Subject subject)
cleanSubject in interface org.forgerock.caf.authentication.api.AsyncServerAuthModulemessageInfo - subject - javax.security.auth.message.AuthExceptionpublic Collection<Class<?>> getSupportedMessageTypes()
getSupportedMessageTypes in interface org.forgerock.caf.authentication.api.AsyncServerAuthModuleCopyright © 2016 ForgeRock AS. All Rights Reserved.