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
public class OAuthAuthorizationData extends OAuthRedirectionState implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OAuthAuthorizationData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<OAuthPermission>getAllPermissions()List<OAuthPermission>getAlreadyAuthorizedPermissions()Get the list of scopes already approved by a userList<String>getAlreadyAuthorizedPermissionsAsStrings()List<String>getApplicationCertificates()StringgetApplicationDescription()Get the application descriptionStringgetApplicationLogoUri()Get the application logo URIStringgetApplicationName()Get the client application nameStringgetApplicationWebUri()Get the application web URIStringgetAuthenticityToken()Get the authenticity token linking the authorization challenge to the current end user sessionStringgetEndUserName()Map<String,String>getExtraApplicationProperties()List<OAuthPermission>getPermissions()Get the list of scopes translated toPermissioninstances requested by the client applicationList<String>getPermissionsAsStrings()StringgetPreauthorizedTokenKey()StringgetReplyTo()Get the absolute URI where the authorization decision data will need to be sent tobooleanisApplicationRegisteredDynamically()booleanisHidePreauthorizedScopesInForm()booleanisImplicitFlow()booleanisSupportSinglePageApplications()voidsetAlreadyAuthorizedPermissions(List<OAuthPermission> perms)Set 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
-
-
-
-
Method Detail
-
getApplicationName
public String getApplicationName()
Get the client application name- Returns:
- application name
-
setApplicationName
public void setApplicationName(String applicationName)
Set the client application name- Parameters:
applicationName- application name
-
getPermissions
public List<OAuthPermission> getPermissions()
Get the list of scopes translated toPermissioninstances requested by the client application- Returns:
- the list of scopes
-
setPermissions
public void setPermissions(List<OAuthPermission> permissions)
Set the list of scopes translated toOAuthPermissioninstances
-
getAlreadyAuthorizedPermissions
public List<OAuthPermission> getAlreadyAuthorizedPermissions()
Get the list of scopes already approved by a user- Returns:
- the list of approved scopes
-
setAlreadyAuthorizedPermissions
public void setAlreadyAuthorizedPermissions(List<OAuthPermission> perms)
Set the list of scopes already approved by a user- Parameters:
perms- the list of approved scopes
-
setAuthenticityToken
public void setAuthenticityToken(String authenticityToken)
Set the authenticity token linking the authorization challenge to the current end user session- Parameters:
authenticityToken- the session authenticity token
-
getAuthenticityToken
public String getAuthenticityToken()
Get the authenticity token linking the authorization challenge to the current end user session- Returns:
- the session authenticity token
-
setApplicationDescription
public void setApplicationDescription(String applicationDescription)
Set the application description- Parameters:
applicationDescription- the description
-
getApplicationDescription
public String getApplicationDescription()
Get the application description- Returns:
- the description
-
setApplicationWebUri
public void setApplicationWebUri(String applicationWebUri)
Set the application web URI- Parameters:
applicationWebUri- the application URI
-
getApplicationWebUri
public String getApplicationWebUri()
Get the application web URI- Returns:
- the application URI
-
setApplicationLogoUri
public void setApplicationLogoUri(String applicationLogoUri)
Set the application logo URI- Parameters:
applicationLogoUri- the logo URI
-
getApplicationLogoUri
public String getApplicationLogoUri()
Get the application logo URI- Returns:
- the logo URI
-
setReplyTo
public void setReplyTo(String replyTo)
Set the absolute URI where the authorization decision data will need to be sent to- Parameters:
replyTo- authorization decision handler URI
-
getReplyTo
public String getReplyTo()
Get the absolute URI where the authorization decision data will need to be sent to- Returns:
- authorization decision handler URI
-
setExtraApplicationProperties
public void setExtraApplicationProperties(Map<String,String> extraApplicationProperties)
-
getEndUserName
public String getEndUserName()
-
setEndUserName
public void setEndUserName(String endUserName)
-
setApplicationCertificates
public void setApplicationCertificates(List<String> applicationCertificates)
-
isImplicitFlow
public boolean isImplicitFlow()
-
setImplicitFlow
public void setImplicitFlow(boolean implicitFlow)
-
isHidePreauthorizedScopesInForm
public boolean isHidePreauthorizedScopesInForm()
-
setHidePreauthorizedScopesInForm
public void setHidePreauthorizedScopesInForm(boolean hidePreauthorizedScopesInForm)
-
getAlreadyAuthorizedPermissionsAsStrings
public List<String> getAlreadyAuthorizedPermissionsAsStrings()
-
getAllPermissions
public List<OAuthPermission> getAllPermissions()
-
isApplicationRegisteredDynamically
public boolean isApplicationRegisteredDynamically()
-
setApplicationRegisteredDynamically
public void setApplicationRegisteredDynamically(boolean applicationRegisteredDynamically)
-
isSupportSinglePageApplications
public boolean isSupportSinglePageApplications()
-
setSupportSinglePageApplications
public void setSupportSinglePageApplications(boolean supportSinglePageApplications)
-
setPreauthorizedTokenKey
public void setPreauthorizedTokenKey(String preauthorizedTokenKey)
-
getPreauthorizedTokenKey
public String getPreauthorizedTokenKey()
-
-