|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
OAuth2ServletValidateException is supposed to be thrown when validation fails. An associated error response is supposed to be generated.
OAuth2ServletValidateException
Method Summary | |
void |
validateAdditionalParamsInAuthRequest(Map attributes) With the exception of the validation of a resource owner, client, scope, redirect uri, and any additional parameters in an authorization request("oauth2/authorize")can be validated using this method. |
void |
validateAdditionalParamsInDelegateAuthRequest(Map attributes) With the exception of the validation of a resource owner, client, scope, redirect uri, and any additional parameters in a grant request("oauth2/grant")can be validated using this method. |
void |
validateAdditionalParamsInTokenRequest(Map attributes) With the exception of the validation of a resource owner, client, scope redirect uri, and any additional parameters in a token request("oauth2/token")can be validated using this method. |
void |
validateClientCredentials(String clientId, String password) Validate if one client credential is correct, when token endpoint is triggered. |
void |
validateGrantedScopes(String resourceOwner, String[] grantedScopes) Validate if the specified resource owner is allowed to grant the specified scope, when the grant endpoint is triggered. |
String |
validateRedirectURI(String clientId, URI redirectURI) Validate if one redirectURI is valid for specified clientId, when the authorization endpoint is triggered. |
void |
validateResourceOwner(String resourceOwner, String password) Validate if a resource owner is valid. |
Method Detail |
public void validateAdditionalParamsInAuthRequest(Map attributes) throws OAuth2ServletValidateException
attributes
- Additional parameter key-values in authorize requestOAuth2ServletValidateException
public void validateAdditionalParamsInDelegateAuthRequest(Map attributes) throws OAuth2ServletValidateException
attributes
- Additional parameter key-values in grant requestOAuth2ServletValidateException
public void validateAdditionalParamsInTokenRequest(Map attributes) throws OAuth2ServletValidateException
attributes
- Additional parameter key-values in token requestOAuth2ServletValidateException
public void validateClientCredentials(String clientId, String password) throws OAuth2ServletValidateException
clientId
- client idpassword
- Password from client's requestOAuth2ServletValidateException
public void validateGrantedScopes(String resourceOwner, String[] grantedScopes) throws OAuth2ServletValidateException
resourceOwner
- Resource owner namegrantedScopes
- Scopes from user inputOAuth2ServletValidateException
public String validateRedirectURI(String clientId, URI redirectURI) throws OAuth2ServletValidateException
clientId
-redirectURI
- from the user's inputOAuth2ServletValidateException
public void validateResourceOwner(String resourceOwner, String password) throws OAuth2ServletValidateException
resourceOwner
- Resource owner namepassword
- Password from user's inputOAuth2ServletValidateException
|
Oracle Communications Services Gatekeeper Java API Reference 6.0 E55513-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |