Class OAuth2GuiceModule.DefaultStatelessCheck
- java.lang.Object
-
- org.forgerock.openam.oauth2.guice.OAuth2GuiceModule.DefaultStatelessCheck
-
- All Implemented Interfaces:
StatelessCheck<Boolean>
- Enclosing class:
- OAuth2GuiceModule
public static class OAuth2GuiceModule.DefaultStatelessCheck extends Object implements StatelessCheck<Boolean>
-
-
Constructor Summary
Constructors Constructor Description DefaultStatelessCheck(OAuth2ProviderSettingsFactory oAuth2ProviderSettings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanbyRealm(String realm)Checks the OAuth2 token is stateless or not based on the realmBooleanbyRequest(OAuth2Request request)Checks the OAuth2 token is stateless or not based on the requestBooleanbyToken(String tokenId)Interrogates token to ascertain the OAuth2 token is stateless or not
-
-
-
Constructor Detail
-
DefaultStatelessCheck
@Inject public DefaultStatelessCheck(OAuth2ProviderSettingsFactory oAuth2ProviderSettings)
-
-
Method Detail
-
byToken
public Boolean byToken(String tokenId)
Description copied from interface:StatelessCheckInterrogates token to ascertain the OAuth2 token is stateless or not- Specified by:
byTokenin interfaceStatelessCheck<Boolean>- Parameters:
tokenId- The token id- Returns:
- The result of the check
-
byRealm
public Boolean byRealm(String realm)
Description copied from interface:StatelessCheckChecks the OAuth2 token is stateless or not based on the realm- Specified by:
byRealmin interfaceStatelessCheck<Boolean>- Parameters:
realm- The realm- Returns:
- The result of the check
-
byRequest
public Boolean byRequest(OAuth2Request request)
Description copied from interface:StatelessCheckChecks the OAuth2 token is stateless or not based on the request- Specified by:
byRequestin interfaceStatelessCheck<Boolean>- Parameters:
request- The OAuth2 request- Returns:
- The result of the check
-
-