Package org.gluu.oxauth.authorize.ws.rs
Class AuthorizeAction
- java.lang.Object
- 
- org.gluu.oxauth.authorize.ws.rs.AuthorizeAction
 
- 
 @RequestScoped @Named public class AuthorizeAction extends java.lang.Object- Version:
- March 4, 2020
- Author:
- Javier Rojas Blum, Yuriy Movchan
 
- 
- 
Constructor SummaryConstructors Constructor Description AuthorizeAction()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckPermissionGranted()voidcheckPermissionGrantedInternal()voidcheckUiLocales()voidconsentRequired()java.lang.StringencodeParameters(java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> parameters)java.lang.StringgetAcrValues()java.lang.StringgetAmrValues()java.lang.StringgetAuthReqId()java.lang.StringgetBindingMessage()java.lang.StringgetClaims()java.lang.StringgetClientId()Returns the client identifier.java.lang.StringgetCodeChallenge()java.lang.StringgetCodeChallengeMethod()java.lang.StringgetDisplay()Returns an ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User.java.lang.StringgetIdTokenHint()java.lang.StringgetLoginHint()java.lang.IntegergetMaxAge()java.lang.StringgetNonce()Return a string value used to associate a user agent session with an ID Token, and to mitigate replay attacks.java.lang.StringgetPrompt()Returns a space delimited list of ASCII strings that can contain the values login, consent, select_account, and none.java.lang.StringgetRedirectUri()Returns the redirection URI.java.lang.StringgetRequest()Returns a JWT encoded OpenID Request Object.java.util.List<java.lang.String>getRequestedClaims()java.lang.StringgetRequestUri()Returns an URL that points to an OpenID Request Object.java.lang.StringgetResponseMode()Returns the mechanism to be used for returning parameters from the Authorization Endpoint.java.lang.StringgetResponseType()Returns the response type:codefor requesting an authorization code (authorization code grant) or token for requesting an access token (implicit grant).java.lang.StringgetScope()Returns the scope of the access request.java.util.List<Scope>getScopes()java.lang.StringgetSessionId()java.lang.StringgetState()Returns an opaque value used by the client to maintain state between the request and callback.java.lang.StringgetUiLocales()protected voidhandleScriptError(java.lang.String facesMessageId)protected voidhandleSessionInvalid()voidinvalidRequest()voidpermissionDenied()voidpermissionGranted()voidpermissionGranted(SessionId session)voidsetAcrValues(java.lang.String acrValues)voidsetAmrValues(java.lang.String amrValues)voidsetAuthReqId(java.lang.String authReqId)voidsetClaims(java.lang.String claims)voidsetClientId(java.lang.String clientId)Sets the client identifier.voidsetCodeChallenge(java.lang.String codeChallenge)voidsetCodeChallengeMethod(java.lang.String codeChallengeMethod)voidsetDisplay(java.lang.String display)Sets an ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User.voidsetIdTokenHint(java.lang.String idTokenHint)voidsetLoginHint(java.lang.String loginHint)voidsetMaxAge(java.lang.Integer maxAge)voidsetNonce(java.lang.String nonce)Sets a string value used to associate a user agent session with an ID Token, and to mitigate replay attacks.voidsetPrompt(java.lang.String prompt)Sets a space delimited list of ASCII strings that can contain the values login, consent, select_account, and none.voidsetRedirectUri(java.lang.String redirectUri)Sets the redirection URI.voidsetRequest(java.lang.String request)Sets a JWT encoded OpenID Request Object.voidsetRequestUri(java.lang.String requestUri)Sets an URL that points to an OpenID Request Object.voidsetResponseMode(java.lang.String responseMode)Sets the mechanism to be used for returning parameters from the Authorization Endpoint.voidsetResponseType(java.lang.String responseType)Sets the response type.voidsetScope(java.lang.String scope)Sets the scope of the access request.voidsetSessionId(java.lang.String p_sessionId)voidsetState(java.lang.String state)Sets the state between the request and callback.voidsetUiLocales(java.lang.String uiLocales)
 
- 
- 
- 
Method Detail- 
checkUiLocalespublic void checkUiLocales() 
 - 
checkPermissionGrantedpublic void checkPermissionGranted() 
 - 
checkPermissionGrantedInternalpublic void checkPermissionGrantedInternal() throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getScopespublic java.util.List<Scope> getScopes() 
 - 
getRequestedClaimspublic java.util.List<java.lang.String> getRequestedClaims() 
 - 
getScopepublic java.lang.String getScope() Returns the scope of the access request.- Returns:
- The scope of the access request.
 
 - 
setScopepublic void setScope(java.lang.String scope) Sets the scope of the access request.- Parameters:
- scope- The scope of the access request.
 
 - 
getResponseTypepublic java.lang.String getResponseType() Returns the response type:codefor requesting an authorization code (authorization code grant) or token for requesting an access token (implicit grant).- Returns:
- The response type.
 
 - 
setResponseTypepublic void setResponseType(java.lang.String responseType) Sets the response type.- Parameters:
- responseType- The response type.
 
 - 
getClientIdpublic java.lang.String getClientId() Returns the client identifier.- Returns:
- The client identifier.
 
 - 
setClientIdpublic void setClientId(java.lang.String clientId) Sets the client identifier.- Parameters:
- clientId- The client identifier.
 
 - 
getRedirectUripublic java.lang.String getRedirectUri() Returns the redirection URI.- Returns:
- The redirection URI.
 
 - 
setRedirectUripublic void setRedirectUri(java.lang.String redirectUri) Sets the redirection URI.- Parameters:
- redirectUri- The redirection URI.
 
 - 
getStatepublic java.lang.String getState() Returns an opaque value used by the client to maintain state between the request and callback. The authorization server includes this value when redirecting the user-agent back to the client. The parameter should be used for preventing cross-site request forgery.- Returns:
- The state between the request and callback.
 
 - 
setStatepublic void setState(java.lang.String state) Sets the state between the request and callback.- Parameters:
- state- The state between the request and callback.
 
 - 
getResponseModepublic java.lang.String getResponseMode() Returns the mechanism to be used for returning parameters from the Authorization Endpoint.- Returns:
- The response mode.
 
 - 
setResponseModepublic void setResponseMode(java.lang.String responseMode) Sets the mechanism to be used for returning parameters from the Authorization Endpoint.- Parameters:
- responseMode- The response mode.
 
 - 
getNoncepublic java.lang.String getNonce() Return a string value used to associate a user agent session with an ID Token, and to mitigate replay attacks.- Returns:
- The nonce value.
 
 - 
setNoncepublic void setNonce(java.lang.String nonce) Sets a string value used to associate a user agent session with an ID Token, and to mitigate replay attacks.- Parameters:
- nonce- The nonce value.
 
 - 
getDisplaypublic java.lang.String getDisplay() Returns an ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User.- Returns:
- The display value.
 
 - 
setDisplaypublic void setDisplay(java.lang.String display) Sets an ASCII string value that specifies how the Authorization Server displays the authentication page to the End-User.- Parameters:
- display- The display value
 
 - 
getPromptpublic java.lang.String getPrompt() Returns a space delimited list of ASCII strings that can contain the values login, consent, select_account, and none.- Returns:
- A list of prompt options.
 
 - 
setPromptpublic void setPrompt(java.lang.String prompt) Sets a space delimited list of ASCII strings that can contain the values login, consent, select_account, and none.- Parameters:
- prompt- A list of prompt options.
 
 - 
getMaxAgepublic java.lang.Integer getMaxAge() 
 - 
setMaxAgepublic void setMaxAge(java.lang.Integer maxAge) 
 - 
getUiLocalespublic java.lang.String getUiLocales() 
 - 
setUiLocalespublic void setUiLocales(java.lang.String uiLocales) 
 - 
getIdTokenHintpublic java.lang.String getIdTokenHint() 
 - 
setIdTokenHintpublic void setIdTokenHint(java.lang.String idTokenHint) 
 - 
getLoginHintpublic java.lang.String getLoginHint() 
 - 
setLoginHintpublic void setLoginHint(java.lang.String loginHint) 
 - 
getAcrValuespublic java.lang.String getAcrValues() 
 - 
setAcrValuespublic void setAcrValues(java.lang.String acrValues) 
 - 
getAmrValuespublic java.lang.String getAmrValues() 
 - 
setAmrValuespublic void setAmrValues(java.lang.String amrValues) 
 - 
getRequestpublic java.lang.String getRequest() Returns a JWT encoded OpenID Request Object.- Returns:
- A JWT encoded OpenID Request Object.
 
 - 
setRequestpublic void setRequest(java.lang.String request) Sets a JWT encoded OpenID Request Object.- Parameters:
- request- A JWT encoded OpenID Request Object.
 
 - 
getRequestUripublic java.lang.String getRequestUri() Returns an URL that points to an OpenID Request Object.- Returns:
- An URL that points to an OpenID Request Object.
 
 - 
setRequestUripublic void setRequestUri(java.lang.String requestUri) Sets an URL that points to an OpenID Request Object.- Parameters:
- requestUri- An URL that points to an OpenID Request Object.
 
 - 
getSessionIdpublic java.lang.String getSessionId() 
 - 
setSessionIdpublic void setSessionId(java.lang.String p_sessionId) 
 - 
permissionGrantedpublic void permissionGranted() 
 - 
permissionGrantedpublic void permissionGranted(SessionId session) 
 - 
permissionDeniedpublic void permissionDenied() 
 - 
invalidRequestpublic void invalidRequest() 
 - 
consentRequiredpublic void consentRequired() 
 - 
getCodeChallengepublic java.lang.String getCodeChallenge() 
 - 
setCodeChallengepublic void setCodeChallenge(java.lang.String codeChallenge) 
 - 
getCodeChallengeMethodpublic java.lang.String getCodeChallengeMethod() 
 - 
setCodeChallengeMethodpublic void setCodeChallengeMethod(java.lang.String codeChallengeMethod) 
 - 
getClaimspublic java.lang.String getClaims() 
 - 
setClaimspublic void setClaims(java.lang.String claims) 
 - 
getAuthReqIdpublic java.lang.String getAuthReqId() 
 - 
setAuthReqIdpublic void setAuthReqId(java.lang.String authReqId) 
 - 
getBindingMessagepublic java.lang.String getBindingMessage() 
 - 
encodeParameterspublic java.lang.String encodeParameters(java.lang.String url, java.util.Map<java.lang.String,java.lang.Object> parameters)
 - 
handleSessionInvalidprotected void handleSessionInvalid() 
 - 
handleScriptErrorprotected void handleScriptError(java.lang.String facesMessageId) 
 
- 
 
-