org.surfnet.oaaas.model
Class AuthorizationRequest
java.lang.Object
org.surfnet.oaaas.model.AbstractEntity
org.surfnet.oaaas.model.AuthorizationRequest
- All Implemented Interfaces:
- Serializable
@Entity
public class AuthorizationRequest
- extends AbstractEntity
A representation of an AuthorizationRequest.
- See Also:
- Serialized Form
AuthorizationRequest
public AuthorizationRequest()
AuthorizationRequest
public AuthorizationRequest(String responseType,
String clientId,
String redirectUri,
List<String> requestedScopes,
String state,
String authState)
encodePrincipal
public void encodePrincipal()
decodePrincipal
public void decodePrincipal()
getResponseType
public String getResponseType()
- Returns:
- the responseType
setResponseType
public void setResponseType(String responseType)
- Parameters:
responseType - the responseType to set
getClientId
public String getClientId()
- Returns:
- the clientId
setClientId
public void setClientId(String clientId)
- Parameters:
clientId - the clientId to set
getRedirectUri
public String getRedirectUri()
- Returns:
- the redirectUri
setRedirectUri
public void setRedirectUri(String redirectUri)
- Parameters:
redirectUri - the redirectUri to set
getRequestedScopes
public List<String> getRequestedScopes()
- Returns:
- the requested scopes
setRequestedScopes
public void setRequestedScopes(List<String> requestedScopes)
- Parameters:
requestedScopes - the requestedScopes to set
getGrantedScopes
public List<String> getGrantedScopes()
- Returns:
- the granted scopes
setGrantedScopes
public void setGrantedScopes(List<String> grantedScopes)
- Parameters:
grantedScopes - the grantedScopes to set
getState
public String getState()
- Returns:
- the state
setState
public void setState(String state)
- Parameters:
state - the state to set
getAuthState
public String getAuthState()
- Returns:
- the authState
setAuthState
public void setAuthState(String authState)
- Parameters:
authState - the authState to set
getClient
public Client getClient()
- Returns:
- the client
setClient
public void setClient(Client client)
- Parameters:
client - the client to set
getAuthorizationCode
public String getAuthorizationCode()
- Returns:
- the authorizationCode
setAuthorizationCode
public void setAuthorizationCode(String authorizationCode)
- Parameters:
authorizationCode - the authorizationCode to set
getPrincipal
public AuthenticatedPrincipal getPrincipal()
- Returns:
- the principal
setPrincipal
public void setPrincipal(AuthenticatedPrincipal principal)
- Parameters:
principal - the principal to set
getEncodedPrincipal
public String getEncodedPrincipal()
- Returns:
- the encodedPrincipal
validate
public boolean validate(javax.validation.ConstraintValidatorContext context)
- Description copied from class:
AbstractEntity
- Template method that validates the state of an
AbstractEntity. Can
be used prior to saving/ updating the AbstractEntity
- Overrides:
validate in class AbstractEntity
- Parameters:
context - the ConstraintValidatorContext
Copyright © 2012-2013 SURFnet bv, The Netherlands. All Rights Reserved.