Searched defs:tokenStore (Results 1 - 25 of 89) sorted by relevance

1234

/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/openidconnect/
H A DOpenAMIdTokenResponseTypeHandler.java44 * @param tokenStore An instance of the OpenIdConnectTokenStore.
48 public OpenAMIdTokenResponseTypeHandler(OpenIdConnectTokenStore tokenStore, OpenAMSettings openAMSettings) { argument
49 super(tokenStore);
H A DOpenAMOpenIdTokenIssuer.java40 * @param tokenStore An instance of the OpenIdConnectTokenStore.
44 public OpenAMOpenIdTokenIssuer(OpenIdConnectTokenStore tokenStore, OpenAMSettings openAMSettings, argument
46 super(tokenStore, resourceOwnerSessionValidator);
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/test/java/org/forgerock/oauth2/core/
H A DAuthorizationCodeResponseTypeHandlerTest.java36 private TokenStore tokenStore; field in class:AuthorizationCodeResponseTypeHandlerTest
41 tokenStore = mock(TokenStore.class);
43 responseTypeHandler = new AuthorizationCodeResponseTypeHandler(tokenStore);
59 given(tokenStore.createAuthorizationCode(scope, resourceOwner, clientId, redirectUri, nonce, request,
H A DTokenResponseTypeHandlerTest.java36 private TokenStore tokenStore; field in class:TokenResponseTypeHandlerTest
41 tokenStore = mock(TokenStore.class);
43 responseTypeHandler = new TokenResponseTypeHandler(tokenStore);
63 given(tokenStore.createAccessToken(grantType, tokenType, authorizationCode, resourceOwner.getId(), clientId,
H A DClientCredentialsGrantTypeHandlerTest.java47 private TokenStore tokenStore; field in class:ClientCredentialsGrantTypeHandlerTest
59 tokenStore = mock(TokenStore.class);
63 grantTypeHandler = new ClientCredentialsGrantTypeHandler(clientAuthenticator, requestValidators, tokenStore,
87 given(tokenStore.createAccessToken(anyString(), anyString(), anyString(), anyString(), anyString(), anyString(),
115 given(tokenStore.createAccessToken(anyString(), anyString(), anyString(), anyString(), anyString(), anyString(),
/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/main/java/org/forgerock/oauth2/restlet/
H A DRestletFormBodyAccessTokenVerifier.java40 public RestletFormBodyAccessTokenVerifier(TokenStore tokenStore) { argument
41 super(tokenStore);
H A DRestletHeaderAccessTokenVerifier.java43 public RestletHeaderAccessTokenVerifier(TokenStore tokenStore) { argument
44 super(tokenStore);
H A DRestletQueryParameterAccessTokenVerifier.java37 public RestletQueryParameterAccessTokenVerifier(TokenStore tokenStore) { argument
38 super(tokenStore);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/restlet/
H A DRestletFormBodyAccessTokenVerifier.java40 public RestletFormBodyAccessTokenVerifier(TokenStore tokenStore) { argument
41 super(tokenStore);
H A DRestletHeaderAccessTokenVerifier.java43 public RestletHeaderAccessTokenVerifier(TokenStore tokenStore) { argument
44 super(tokenStore);
H A DRestletQueryParameterAccessTokenVerifier.java37 public RestletQueryParameterAccessTokenVerifier(TokenStore tokenStore) { argument
38 super(tokenStore);
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/main/java/org/forgerock/oauth2/core/
H A DAccessTokenServiceImpl.java57 private final TokenStore tokenStore; field in class:AccessTokenServiceImpl
65 * @param tokenStore An instance of the TokenStore.
71 final ClientAuthenticator clientAuthenticator, final TokenStore tokenStore,
75 this.tokenStore = tokenStore;
110 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
146 newRefreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
150 tokenStore.deleteRefreshToken(refreshToken.getTokenId());
153 final AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER, null,
70 AccessTokenServiceImpl(Map<String, GrantTypeHandler> grantTypeHandlers, final ClientAuthenticator clientAuthenticator, final TokenStore tokenStore, final OAuth2ProviderSettingsFactory providerSettingsFactory, OAuth2UrisFactory urisFactory) argument
H A DClientCredentialsGrantTypeHandler.java42 private final TokenStore tokenStore; field in class:ClientCredentialsGrantTypeHandler
49 * @param tokenStore An instance of the TokenStore.
55 List<ClientCredentialsRequestValidator> requestValidators, TokenStore tokenStore,
59 this.tokenStore = tokenStore;
80 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
90 tokenStore.updateAccessToken(accessToken);
54 ClientCredentialsGrantTypeHandler(ClientAuthenticator clientAuthenticator, List<ClientCredentialsRequestValidator> requestValidators, TokenStore tokenStore, OAuth2UrisFactory urisFactory,OAuth2ProviderSettingsFactory providerSettingsFactory) argument
H A DJwtBearerGrantTypeHandler.java45 private final TokenStore tokenStore; field in class:JwtBearerGrantTypeHandler
48 public JwtBearerGrantTypeHandler(ClientAuthenticator clientAuthenticator, TokenStore tokenStore, argument
51 this.tokenStore = tokenStore;
81 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
91 tokenStore.updateAccessToken(accessToken);
H A DPasswordCredentialsGrantTypeHandler.java47 private final TokenStore tokenStore; field in class:PasswordCredentialsGrantTypeHandler
56 * @param tokenStore An instance of the TokenStore.
63 TokenStore tokenStore) {
67 this.tokenStore = tokenStore;
99 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
103 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
117 tokenStore.updateAccessToken(accessToken);
59 PasswordCredentialsGrantTypeHandler(ClientAuthenticator clientAuthenticator, List<PasswordCredentialsRequestValidator> requestValidators, ResourceOwnerAuthenticator resourceOwnerAuthenticator, OAuth2ProviderSettingsFactory providerSettingsFactory, OAuth2UrisFactory urisFactory, TokenStore tokenStore) argument
H A DTokenInvalidator.java35 private final TokenStore tokenStore; field in class:TokenInvalidator
40 * @param tokenStore An instance of the TokenStore.
43 public TokenInvalidator(TokenStore tokenStore) { argument
44 this.tokenStore = tokenStore;
55 JsonValue token = tokenStore.queryForToken(tokenId);
91 tokenStore.deleteAccessToken(id);
93 tokenStore.deleteRefreshToken(id);
95 tokenStore.deleteAuthorizationCode(id);
/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/main/java/org/forgerock/openam/oauth2/
H A DAccessTokenProtectionFilter.java48 private final TokenStore tokenStore; field in class:AccessTokenProtectionFilter
51 public AccessTokenProtectionFilter(String requiredScope, TokenStore tokenStore, argument
54 this.tokenStore = tokenStore;
69 AccessToken accessToken = tokenStore.readAccessToken(oAuth2Request, tokenId);
/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/test/java/org/forgerock/oauth2/restlet/
H A DRestletFormBodyAccessTokenVerifierTest.java34 private TokenStore tokenStore; field in class:RestletFormBodyAccessTokenVerifierTest
38 tokenStore = mock(TokenStore.class);
39 verifier = new RestletFormBodyAccessTokenVerifier(tokenStore);
98 verify(tokenStore).readAccessToken(req, "freddy");
116 when(tokenStore.readAccessToken(req, "freddy")).thenReturn(token);
123 verify(tokenStore).readAccessToken(req, "freddy");
141 when(tokenStore.readAccessToken(req, "freddy")).thenReturn(token);
149 verify(tokenStore).readAccessToken(req, "freddy");
H A DRestletHeaderAccessTokenVerifierTest.java41 private TokenStore tokenStore; field in class:RestletHeaderAccessTokenVerifierTest
45 tokenStore = mock(TokenStore.class);
46 verifier = new RestletHeaderAccessTokenVerifier(tokenStore);
79 verify(tokenStore).readAccessToken(req, "freddy");
96 verify(tokenStore).readAccessToken(req, "freddy");
114 when(tokenStore.readAccessToken(req, "freddy")).thenReturn(token);
121 verify(tokenStore).readAccessToken(req, "freddy");
139 when(tokenStore.readAccessToken(req, "freddy")).thenReturn(token);
147 verify(tokenStore).readAccessToken(req, "freddy");
/forgerock/openam-v13/openam-oauth2-common/openid-connect-core/src/main/java/org/forgerock/openidconnect/
H A DOpenIDTokenIssuer.java46 private final OpenIdConnectTokenStore tokenStore; field in class:OpenIDTokenIssuer
52 * @param tokenStore An instance of the OpenIdConnectTokenStore.
55 public OpenIDTokenIssuer(OpenIdConnectTokenStore tokenStore, argument
57 this.tokenStore = tokenStore;
85 final OpenIdConnectToken openIdToken = tokenStore.createOpenIDToken(
H A DUserInfoServiceImpl.java46 private final TokenStore tokenStore; field in class:UserInfoServiceImpl
54 * @param tokenStore An instance of the TokenStore.
60 public UserInfoServiceImpl(TokenStore tokenStore, OAuth2ProviderSettingsFactory providerSettingsFactory, argument
63 this.tokenStore = tokenStore;
87 final AccessToken token = tokenStore.readAccessToken(request, tokenId);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DAccessTokenService.java61 private final TokenStore tokenStore; field in class:AccessTokenService
70 * @param tokenStore An instance of the TokenStore.
76 final ClientAuthenticator clientAuthenticator, final TokenStore tokenStore,
81 this.tokenStore = tokenStore;
149 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
186 newRefreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
190 tokenStore.deleteRefreshToken(request, refreshToken.toString());
193 final AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER, null,
75 AccessTokenService(Map<String, GrantTypeHandler> grantTypeHandlers, final ClientAuthenticator clientAuthenticator, final TokenStore tokenStore, final OAuth2ProviderSettingsFactory providerSettingsFactory, OAuth2UrisFactory urisFactory, final ConfirmationKeyValidator confirmationKeyValidator) argument
H A DClientCredentialsGrantTypeHandler.java47 private final TokenStore tokenStore; field in class:ClientCredentialsGrantTypeHandler
54 * @param tokenStore An instance of the TokenStore.
60 List<ClientCredentialsRequestValidator> requestValidators, TokenStore tokenStore,
64 this.tokenStore = tokenStore;
86 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
96 tokenStore.updateAccessToken(request, accessToken);
59 ClientCredentialsGrantTypeHandler(ClientAuthenticator clientAuthenticator, List<ClientCredentialsRequestValidator> requestValidators, TokenStore tokenStore, OAuth2UrisFactory urisFactory,OAuth2ProviderSettingsFactory providerSettingsFactory) argument
H A DJwtBearerGrantTypeHandler.java46 private final TokenStore tokenStore; field in class:JwtBearerGrantTypeHandler
49 public JwtBearerGrantTypeHandler(ClientAuthenticator clientAuthenticator, TokenStore tokenStore, argument
52 this.tokenStore = tokenStore;
82 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
92 tokenStore.updateAccessToken(request, accessToken);
H A DPasswordCredentialsGrantTypeHandler.java51 private final TokenStore tokenStore; field in class:PasswordCredentialsGrantTypeHandler
60 * @param tokenStore An instance of the TokenStore.
67 TokenStore tokenStore) {
71 this.tokenStore = tokenStore;
103 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
107 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
121 tokenStore.updateAccessToken(request, accessToken);
63 PasswordCredentialsGrantTypeHandler(ClientAuthenticator clientAuthenticator, List<PasswordCredentialsRequestValidator> requestValidators, ResourceOwnerAuthenticator resourceOwnerAuthenticator, OAuth2ProviderSettingsFactory providerSettingsFactory, OAuth2UrisFactory urisFactory, TokenStore tokenStore) argument

Completed in 1225 milliseconds

1234