Searched defs:refreshToken (Results 1 - 18 of 18) sorted by relevance

/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/main/java/org/forgerock/oauth2/core/
H A DAccessTokenService.java82 AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in interface:AccessTokenService
H A DAccessTokenServiceImpl.java98 public AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in class:AccessTokenServiceImpl
110 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
112 if (refreshToken == null) {
117 if (!refreshToken.getClientId().equalsIgnoreCase(clientRegistration.getClientId())) {
122 if (refreshToken.isExpired()) {
123 logger.warn("Refresh Token is expired for id: " + refreshToken.getTokenId());
131 if (refreshToken.getScope() != null) {
132 tokenScope = new TreeSet<String>(refreshToken.getScope());
142 refreshToken.getStringProperty(OAuth2Constants.Custom.CLAIMS));
147 refreshToken
[all...]
H A DTokenStore.java71 * @param refreshToken The refresh token. May be {@code null}.
81 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
79 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DAccessTokenService.java136 public AccessToken refreshToken(OAuth2Request request) throws InvalidClientException, InvalidRequestException, method in class:AccessTokenService
149 final RefreshToken refreshToken = tokenStore.readRefreshToken(request, tokenId);
151 if (refreshToken == null) {
156 AuditRequestContext.putProperty(OAUTH2_GRANT.toString(), refreshToken.getAuditTrackingId());
158 if (!refreshToken.getClientId().equalsIgnoreCase(clientRegistration.getClientId())) {
163 if (refreshToken.isExpired()) {
164 logger.warn("Refresh Token is expired for id: " + refreshToken.getTokenId());
172 if (refreshToken.getScope() != null) {
173 tokenScope = new TreeSet<String>(refreshToken.getScope());
182 final String validatedClaims = providerSettings.validateRequestedClaims(refreshToken
[all...]
H A DTokenStore.java74 * @param refreshToken The refresh token. May be {@code null}.
84 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
97 * @param refreshToken The refresh token. May be {@code null}.
108 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
82 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
106 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
H A DStatefulAccessToken.java103 * @param refreshToken The refresh token.
113 String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken,
116 this(id, authorizationCode, resourceOwnerId, clientId, redirectUri, scope, expiryTime, refreshToken,
131 * @param refreshToken The refresh token.
142 String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken,
153 if (refreshToken != null) {
154 setRefreshTokenId(refreshToken.getTokenId());
155 setAuthGrantId(refreshToken.getAuthGrantId());
112 StatefulAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId, JsonValue confirmationKey) argument
141 StatefulAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, RefreshToken refreshToken, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId, long authTime, JsonValue confirmationKey) argument
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/test/java/org/forgerock/oauth2/core/
H A DDeviceCodeGrantTypeHandlerTest.java66 private RefreshToken refreshToken; field in class:DeviceCodeGrantTypeHandlerTest
95 any(OAuth2Request.class), anyString())).thenReturn(refreshToken);
139 refreshToken, null, "CLAIMS", request);
/forgerock/opendj-b2.6/src/server/org/opends/server/core/
H A DGroupManager.java118 private volatile long refreshToken=0; field in class:GroupManager
742 refreshToken++;
818 refreshToken++;
850 refreshToken++;
892 refreshToken++;
958 refreshToken++;
1176 return token != this.refreshToken;
1185 public long refreshToken() { method in class:GroupManager
1186 return this.refreshToken;
/forgerock/opendj2/src/server/org/opends/server/core/
H A DGroupManager.java95 private volatile long refreshToken = 0; field in class:GroupManager
663 refreshToken++;
766 refreshToken++;
876 refreshToken++;
1028 refreshToken++;
1078 return token != this.refreshToken;
1087 public long refreshToken() { method in class:GroupManager
1088 return this.refreshToken;
/forgerock/opendj2.6.2/src/server/org/opends/server/core/
H A DGroupManager.java118 private volatile long refreshToken=0; field in class:GroupManager
742 refreshToken++;
842 refreshToken++;
967 refreshToken++;
1135 refreshToken++;
1187 return token != this.refreshToken;
1196 public long refreshToken() { method in class:GroupManager
1197 return this.refreshToken;
/forgerock/opendj2-jel-hg/src/server/org/opends/server/core/
H A DGroupManager.java118 private volatile long refreshToken=0; field in class:GroupManager
742 refreshToken++;
818 refreshToken++;
850 refreshToken++;
892 refreshToken++;
958 refreshToken++;
1176 return token != this.refreshToken;
1185 public long refreshToken() { method in class:GroupManager
1186 return this.refreshToken;
/forgerock/opendj2-hg/src/server/org/opends/server/core/
H A DGroupManager.java95 private volatile long refreshToken = 0; field in class:GroupManager
663 refreshToken++;
766 refreshToken++;
876 refreshToken++;
1028 refreshToken++;
1078 return token != this.refreshToken;
1087 public long refreshToken() { method in class:GroupManager
1088 return this.refreshToken;
/forgerock/opendj-v3/opendj-server-legacy/src/main/java/org/opends/server/core/
H A DGroupManager.java116 private volatile long refreshToken; field in class:GroupManager
650 refreshToken++;
758 refreshToken++;
850 refreshToken++;
1002 refreshToken++;
1049 return token != this.refreshToken;
1058 public long refreshToken() { method in class:GroupManager
1059 return this.refreshToken;
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMAccessToken.java160 protected void setRefreshTokenId(String refreshToken) { argument
161 put(REFRESH_TOKEN, stringToSet(refreshToken));
H A DOpenAMTokenStore.java474 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
493 if (refreshToken == null) {
499 scope, expiryTime, refreshToken.getTokenId(), OAuth2Constants.Token.OAUTH_ACCESS_TOKEN, grantType,
565 OpenAMRefreshToken refreshToken = new OpenAMRefreshToken(id, resourceOwnerId, clientId, redirectUri, scope,
570 refreshToken.setClaims(validatedClaims);
574 tokenStore.create(refreshToken);
576 String[] obs = {"CREATED_REFRESH_TOKEN", refreshToken.toString()};
581 String[] obs = {"FAILED_CREATE_REFRESH_TOKEN", refreshToken.toString()};
584 logger.error("Unable to create refresh token: " + refreshToken.getTokenInfo(), e);
588 request.setToken(RefreshToken.class, refreshToken);
472 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
[all...]
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMTokenStore.java87 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
90 clientId, redirectUri, scope, refreshToken, nonce, claims, request,
97 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
101 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
104 clientId, redirectUri, scope, refreshToken, nonce, claims, request, authTime);
85 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
95 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
H A DStatefulTokenStore.java512 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request)
515 redirectUri, scope, refreshToken, nonce, claims, request,
524 RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime)
549 clientId, redirectUri, scope, expiryTime, refreshToken, OAuth2Constants.Token.OAUTH_ACCESS_TOKEN,
652 StatefulRefreshToken refreshToken = new StatefulRefreshToken(id, resourceOwnerId, clientId, redirectUri, scope,
657 refreshToken.setClaims(validatedClaims);
661 tokenStore.create(refreshToken);
663 String[] obs = {"CREATED_REFRESH_TOKEN", refreshToken.toString()};
668 String[] obs = {"FAILED_CREATE_REFRESH_TOKEN", refreshToken.toString()};
671 logger.error("Unable to create refresh token: " + refreshToken
510 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
522 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
[all...]
H A DStatelessTokenStore.java149 resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken,
152 redirectUri, scope, refreshToken, nonce, claims, request,
158 resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken,
194 .claim(AUTH_GRANT_ID, refreshToken != null ? refreshToken.getAuthGrantId() : UUID.randomUUID().toString())
460 StatelessRefreshToken refreshToken = new StatelessRefreshToken(jwt, jwt.build());
461 request.setToken(RefreshToken.class, refreshToken);
462 createStatelessTokenMetadata(jwtId, expiryTime, refreshToken);
463 return refreshToken;
590 StatelessRefreshToken refreshToken
148 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request) argument
157 createAccessToken(String grantType, String accessTokenType, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, RefreshToken refreshToken, String nonce, String claims, OAuth2Request request, long authTime) argument
[all...]

Completed in 243 milliseconds