Searched refs:grantType (Results 1 - 25 of 40) sorted by relevance

12

/forgerock/openam-v13/openam-oauth2-common/oauth2-restlet/src/main/java/org/forgerock/oauth2/restlet/
H A DOAuth2FlowFinder.java76 final String grantType = oAuth2Request.getParameter("grant_type");
77 if (isEmpty(grantType)) {
82 Finder finder = endpointClasses.get(grantType);
84 logger.error("Unsupported grant type: Type is not supported: " + grantType);
86 new UnsupportedGrantTypeException("Grant type is not supported: " + grantType));
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DStatelessTokenMetadata.java43 private String grantType; field in class:StatelessTokenMetadata
46 String clientId, Set<String> scope, String realm, String name, String grantType) {
55 this.grantType = grantType;
88 public String getGrantType() { return grantType; }
45 StatelessTokenMetadata(String id, String resourceOwnerId, long expiryTime, String grantId, String clientId, Set<String> scope, String realm, String name, String grantType) argument
H A DOpenAMTokenStore.java85 public AccessToken createAccessToken(String grantType, String accessTokenType, String authorizationCode, argument
89 return createAccessToken(grantType, accessTokenType, authorizationCode, resourceOwnerId,
95 public AccessToken createAccessToken(String grantType, String accessTokenType, String authorizationCode, argument
100 return statelessTokenStore.createAccessToken(grantType, accessTokenType, authorizationCode, resourceOwnerId,
103 return statefulTokenStore.createAccessToken(grantType, accessTokenType, authorizationCode, resourceOwnerId,
109 public RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
113 return statelessTokenStore.createRefreshToken(grantType, clientId, resourceOwnerId, redirectUri, scope,
116 return statefulTokenStore.createRefreshToken(grantType, clientId, resourceOwnerId, redirectUri, scope,
122 public RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
125 return createRefreshToken(grantType, clientI
130 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, long authTime) argument
143 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId) argument
151 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
[all...]
H A DStatelessTokenCtsAdapter.java73 String grantType = token.getAttribute(GRANT_ID_FIELD);
75 realm, name, grantType);
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/restlet/
H A DOAuth2FlowFinder.java76 final String grantType = oAuth2Request.getParameter("grant_type");
77 if (isEmpty(grantType)) {
82 Finder finder = endpointClasses.get(grantType);
84 logger.error("Unsupported grant type: Type is not supported: " + grantType);
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/main/java/org/forgerock/oauth2/core/
H A DGrantTypeAccessTokenGenerator.java38 public AccessToken generateAccessToken(OAuth2ProviderSettings providerSettings, String grantType, String clientId, argument
43 refreshToken = tokenStore.createRefreshToken(grantType, clientId,
47 AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER,
H A DAccessTokenServiceImpl.java87 final String grantType = request.getParameter(GRANT_TYPE);
88 final GrantTypeHandler grantTypeHandler = grantTypeHandlers.get(grantType);
90 throw new InvalidGrantException("Unknown Grant Type, " + grantType);
128 final String grantType = request.getParameter(GRANT_TYPE);
146 newRefreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
153 final AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER, null,
H A DPasswordCredentialsGrantTypeHandler.java95 final String grantType = request.getParameter(GRANT_TYPE);
99 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
103 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DTokenStore.java64 * @param grantType The grant type.
79 AccessToken createAccessToken(String grantType, String accessTokenType, String authorizationCode, argument
87 * @param grantType The OAuth2 Grant Type.
97 RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
104 * @param grantType The OAuth2 Grant Type.
115 RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
H A DClientCredentialsGrantTypeHandler.java78 final String grantType = request.getParameter(GRANT_TYPE);
80 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DJwtBearerGrantTypeHandler.java73 final String grantType = request.getParameter(GRANT_TYPE);
81 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DAccessToken.java73 * @param grantType The grant type.
77 Set<String> scope, long expiryTime, String refreshTokenId, String tokenName, String grantType,
92 setGrantType(grantType);
189 * @param grantType The grant type.
191 protected void setGrantType(String grantType) { argument
192 put(OAuth2Constants.Params.GRANT_TYPE, grantType);
76 AccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String refreshTokenId, String tokenName, String grantType, String nonce) argument
H A DDeviceCodeGrantTypeHandler.java99 String grantType = request.getParameter(OAuth2Constants.Params.GRANT_TYPE);
104 return generateAccessToken(providerSettings, grantType, clientId, resourceOwnerId, scope,
132 private AccessToken generateAccessToken(OAuth2ProviderSettings providerSettings, String grantType, String clientId, argument
135 return accessTokenGenerator.generateAccessToken(providerSettings, grantType, clientId, resourceOwnerId, null,
H A DRefreshToken.java58 * @param grantType The grant type.
61 long expiryTime, String tokenType, String tokenName, String grantType, String authModules,
72 setGrantType(grantType);
152 * @param grantType The grant type.
154 protected final void setGrantType(final String grantType) { argument
155 setStringProperty(OAuth2Constants.Params.GRANT_TYPE, grantType);
60 RefreshToken(String id, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String tokenType, String tokenName, String grantType, String authModules, String acr) argument
/forgerock/openam/openam-oauth2/src/main/java/org/forgerock/oauth2/core/
H A DTokenStore.java67 * @param grantType The grant type.
82 AccessToken createAccessToken(String grantType, String accessTokenType, String authorizationCode, argument
90 * @param grantType The grant type.
106 AccessToken createAccessToken(String grantType, String accessTokenType, String authorizationCode, argument
114 * @param grantType The OAuth2 Grant Type.
124 RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
131 * @param grantType The OAuth2 Grant Type.
142 RefreshToken createRefreshToken(String grantType, String clientId, String resourceOwnerId, argument
149 * @param grantType The OAuth2 Grant Type.
161 RefreshToken createRefreshToken(String grantType, Strin argument
180 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId) argument
200 createRefreshToken(String grantType, String clientId, String resourceOwnerId, String redirectUri, Set<String> scope, OAuth2Request request, String validatedClaims, String authGrantId, long authTime) argument
[all...]
H A DGrantTypeAccessTokenGenerator.java48 public AccessToken generateAccessToken(OAuth2ProviderSettings providerSettings, String grantType, String clientId, argument
69 refreshToken = tokenStore.createRefreshToken(grantType, clientId,
73 AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER,
H A DAccessTokenService.java111 final String grantType = request.getParameter(GRANT_TYPE);
112 final GrantTypeHandler grantTypeHandler = grantTypeHandlers.get(grantType);
114 throw new InvalidGrantException("Unknown Grant Type, " + grantType);
169 final String grantType = request.getParameter(GRANT_TYPE);
186 newRefreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
193 final AccessToken accessToken = tokenStore.createAccessToken(grantType, OAuth2Constants.Bearer.BEARER, null,
H A DPasswordCredentialsGrantTypeHandler.java99 final String grantType = request.getParameter(GRANT_TYPE);
103 refreshToken = tokenStore.createRefreshToken(grantType, clientRegistration.getClientId(),
107 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DClientCredentialsGrantTypeHandler.java84 final String grantType = request.getParameter(GRANT_TYPE);
86 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DJwtBearerGrantTypeHandler.java74 final String grantType = request.getParameter(GRANT_TYPE);
82 final AccessToken accessToken = tokenStore.createAccessToken(grantType, BEARER, null,
H A DDeviceCodeGrantTypeHandler.java96 String grantType = request.getParameter(OAuth2Constants.Params.GRANT_TYPE);
101 return generateAccessToken(providerSettings, grantType, clientId, resourceOwnerId, scope,
129 private AccessToken generateAccessToken(OAuth2ProviderSettings providerSettings, String grantType, String clientId, argument
132 return accessTokenGenerator.generateAccessToken(providerSettings, grantType, clientId, resourceOwnerId, null,
H A DStatefulRefreshToken.java74 * @param grantType The grant type.
82 long expiryTime, String tokenType, String tokenName, String grantType, String realm,
84 this (id, resourceOwnerId, clientId, redirectUri, scope, expiryTime, tokenType, tokenName, grantType, realm,
99 * @param grantType The grant type.
108 long expiryTime, String tokenType, String tokenName, String grantType, String realm,
120 setGrantType(grantType);
81 StatefulRefreshToken(String id, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String tokenType, String tokenName, String grantType, String realm, String authModules, String acr, String auditId, String authGrantId) argument
107 StatefulRefreshToken(String id, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String tokenType, String tokenName, String grantType, String realm, String authModules, String acr, String auditId, String authGrantId, long authTime) argument
/forgerock/openam-v13/openam-oauth2-common/oauth2-core/src/test/java/org/forgerock/oauth2/core/
H A DTokenResponseTypeHandlerTest.java50 String grantType = "token";
63 given(tokenStore.createAccessToken(grantType, tokenType, authorizationCode, resourceOwner.getId(), clientId,
/forgerock/openam/openam-oauth2/src/test/java/org/forgerock/oauth2/core/
H A DStatefulAccessTokenTest.java93 String grantType = "password";
101 refreshToken, tokenName, grantType, nonce, realm, claims, auditTrackingId, confirmationKey);
/forgerock/openam-v13/openam-oauth2/src/main/java/org/forgerock/openam/oauth2/
H A DOpenAMAccessToken.java76 * @param grantType The grant type.
84 String tokenName, String grantType, String nonce, String realm, String claims,
87 tokenName, grantType, nonce);
184 protected void setGrantType(String grantType) { argument
185 put(OAuth2Constants.Params.GRANT_TYPE, stringToSet(grantType));
82 OpenAMAccessToken(String id, String authorizationCode, String resourceOwnerId, String clientId, String redirectUri, Set<String> scope, long expiryTime, String refreshTokenId, String tokenName, String grantType, String nonce, String realm, String claims, String auditTrackingId) argument

Completed in 136 milliseconds

12