Class AuthorizationCodeRegistration
- java.lang.Object
-
- org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeRegistration
-
public class AuthorizationCodeRegistration extends Object
Captures the information associated with the code grant registration request.- See Also:
ServerAuthorizationCodeGrant
-
-
Constructor Summary
Constructors Constructor Description AuthorizationCodeRegistration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getApprovedScope()Gets the scopes explicitly approved by the end userStringgetAudience()ClientgetClient()GetsClientreferenceStringgetClientCodeChallenge()StringgetClientCodeChallengeMethod()Map<String,String>getExtraProperties()StringgetNonce()StringgetRedirectUri()Gets the redirect URIList<String>getRequestedScope()Gets the scopes request by the clientStringgetResponseType()UserSubjectgetSubject()Gets the user subject representing the end userbooleanisPreauthorizedTokenAvailable()voidsetApprovedScope(List<String> approvedScope)Sets the scopes explicitly approved by the end user.voidsetAudience(String audience)voidsetClient(Client client)Sets theClientreferencevoidsetClientCodeChallenge(String clientCodeChallenge)voidsetClientCodeChallengeMethod(String clientCodeChallengeMethod)voidsetExtraProperties(Map<String,String> extraProperties)voidsetNonce(String nonce)voidsetPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable)voidsetRedirectUri(String redirectUri)Sets the redirect URIvoidsetRequestedScope(List<String> requestedScope)Sets the scopes request by the clientvoidsetResponseType(String responseType)voidsetSubject(UserSubject subject)Sets the user subject representing the end user
-
-
-
Method Detail
-
setClient
public void setClient(Client client)
Sets theClientreference- Parameters:
client- the client
-
setRedirectUri
public void setRedirectUri(String redirectUri)
Sets the redirect URI- Parameters:
redirectUri- the redirect URI
-
getRedirectUri
public String getRedirectUri()
Gets the redirect URI- Returns:
- the redirect URI
-
setRequestedScope
public void setRequestedScope(List<String> requestedScope)
Sets the scopes request by the client- Parameters:
requestedScope- the requested scopes
-
getRequestedScope
public List<String> getRequestedScope()
Gets the scopes request by the client- Returns:
- the requested scopes
-
setApprovedScope
public void setApprovedScope(List<String> approvedScope)
Sets the scopes explicitly approved by the end user. If this list is empty then the end user had no way to down-scope.- Parameters:
approvedScope- the approved scopes
-
getApprovedScope
public List<String> getApprovedScope()
Gets the scopes explicitly approved by the end user- Returns:
- the approved scopes
-
setSubject
public void setSubject(UserSubject subject)
Sets the user subject representing the end user- Parameters:
subject- the subject
-
getSubject
public UserSubject getSubject()
Gets the user subject representing the end user- Returns:
- the subject
-
getAudience
public String getAudience()
-
setAudience
public void setAudience(String audience)
-
getClientCodeChallenge
public String getClientCodeChallenge()
-
setClientCodeChallenge
public void setClientCodeChallenge(String clientCodeChallenge)
-
getNonce
public String getNonce()
-
setNonce
public void setNonce(String nonce)
-
isPreauthorizedTokenAvailable
public boolean isPreauthorizedTokenAvailable()
-
setPreauthorizedTokenAvailable
public void setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable)
-
getResponseType
public String getResponseType()
-
setResponseType
public void setResponseType(String responseType)
-
getClientCodeChallengeMethod
public String getClientCodeChallengeMethod()
-
setClientCodeChallengeMethod
public void setClientCodeChallengeMethod(String clientCodeChallengeMethod)
-
-