Class OAuthAuthorizationData
java.lang.Object
org.apache.cxf.rs.security.oauth2.common.OAuthRedirectionState
org.apache.cxf.rs.security.oauth2.common.OAuthAuthorizationData
- All Implemented Interfaces:
Serializable
This bean represents a resource owner authorization challenge.
Typically, an HTML view will be returned to a resource owner who
will authorize or deny the third-party client
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the list of scopes already approved by a userGet the application descriptionGet the application logo URIGet the client application nameGet the application web URIGet the authenticity token linking the authorization challenge to the current end user sessionGet the list of scopes translated toPermissioninstances requested by the client applicationGet the absolute URI where the authorization decision data will need to be sent tobooleanbooleanbooleanbooleanvoidSet the list of scopes already approved by a uservoidsetApplicationCertificates(List<String> applicationCertificates) voidsetApplicationDescription(String applicationDescription) Set the application descriptionvoidsetApplicationLogoUri(String applicationLogoUri) Set the application logo URIvoidsetApplicationName(String applicationName) Set the client application namevoidsetApplicationRegisteredDynamically(boolean applicationRegisteredDynamically) voidsetApplicationWebUri(String applicationWebUri) Set the application web URIvoidsetAuthenticityToken(String authenticityToken) Set the authenticity token linking the authorization challenge to the current end user sessionvoidsetEndUserName(String endUserName) voidsetExtraApplicationProperties(Map<String, String> extraApplicationProperties) voidsetHidePreauthorizedScopesInForm(boolean hidePreauthorizedScopesInForm) voidsetImplicitFlow(boolean implicitFlow) voidsetPermissions(List<OAuthPermission> permissions) Set the list of scopes translated toOAuthPermissioninstancesvoidsetPreauthorizedTokenKey(String preauthorizedTokenKey) voidsetReplyTo(String replyTo) Set the absolute URI where the authorization decision data will need to be sent tovoidsetSupportSinglePageApplications(boolean supportSinglePageApplications) Methods inherited from class org.apache.cxf.rs.security.oauth2.common.OAuthRedirectionState
getAudience, getClientCodeChallenge, getClientCodeChallengeMethod, getClientId, getExtraProperties, getNonce, getProposedScope, getRedirectUri, getResponseType, getState, setAudience, setClientCodeChallenge, setClientCodeChallengeMethod, setClientId, setExtraProperties, setNonce, setProposedScope, setRedirectUri, setResponseType, setState
-
Constructor Details
-
OAuthAuthorizationData
public OAuthAuthorizationData()
-
-
Method Details
-
getApplicationName
Get the client application name- Returns:
- application name
-
setApplicationName
Set the client application name- Parameters:
applicationName- application name
-
getPermissions
Get the list of scopes translated toPermissioninstances requested by the client application- Returns:
- the list of scopes
-
setPermissions
Set the list of scopes translated toOAuthPermissioninstances -
getAlreadyAuthorizedPermissions
Get the list of scopes already approved by a user- Returns:
- the list of approved scopes
-
setAlreadyAuthorizedPermissions
Set the list of scopes already approved by a user- Parameters:
perms- the list of approved scopes
-
setAuthenticityToken
Set the authenticity token linking the authorization challenge to the current end user session- Parameters:
authenticityToken- the session authenticity token
-
getAuthenticityToken
Get the authenticity token linking the authorization challenge to the current end user session- Returns:
- the session authenticity token
-
setApplicationDescription
Set the application description- Parameters:
applicationDescription- the description
-
getApplicationDescription
Get the application description- Returns:
- the description
-
setApplicationWebUri
Set the application web URI- Parameters:
applicationWebUri- the application URI
-
getApplicationWebUri
Get the application web URI- Returns:
- the application URI
-
setApplicationLogoUri
Set the application logo URI- Parameters:
applicationLogoUri- the logo URI
-
getApplicationLogoUri
Get the application logo URI- Returns:
- the logo URI
-
setReplyTo
Set the absolute URI where the authorization decision data will need to be sent to- Parameters:
replyTo- authorization decision handler URI
-
getReplyTo
Get the absolute URI where the authorization decision data will need to be sent to- Returns:
- authorization decision handler URI
-
getExtraApplicationProperties
-
setExtraApplicationProperties
-
getEndUserName
-
setEndUserName
-
getApplicationCertificates
-
setApplicationCertificates
-
isImplicitFlow
public boolean isImplicitFlow() -
setImplicitFlow
public void setImplicitFlow(boolean implicitFlow) -
isHidePreauthorizedScopesInForm
public boolean isHidePreauthorizedScopesInForm() -
setHidePreauthorizedScopesInForm
public void setHidePreauthorizedScopesInForm(boolean hidePreauthorizedScopesInForm) -
getPermissionsAsStrings
-
getAlreadyAuthorizedPermissionsAsStrings
-
getAllPermissions
-
isApplicationRegisteredDynamically
public boolean isApplicationRegisteredDynamically() -
setApplicationRegisteredDynamically
public void setApplicationRegisteredDynamically(boolean applicationRegisteredDynamically) -
isSupportSinglePageApplications
public boolean isSupportSinglePageApplications() -
setSupportSinglePageApplications
public void setSupportSinglePageApplications(boolean supportSinglePageApplications) -
setPreauthorizedTokenKey
-
getPreauthorizedTokenKey
-