org.surfnet.oaaas.model
Class AuthorizationRequest

java.lang.Object
  extended by org.surfnet.oaaas.model.AbstractEntity
      extended by org.surfnet.oaaas.model.AuthorizationRequest
All Implemented Interfaces:
Serializable

@Entity
public class AuthorizationRequest
extends AbstractEntity

A representation of an AuthorizationRequest.

See Also:
Serialized Form

Constructor Summary
AuthorizationRequest()
           
AuthorizationRequest(String responseType, String clientId, String redirectUri, List<String> requestedScopes, String state, String authState)
           
 
Method Summary
 void decodePrincipal()
           
 void encodePrincipal()
           
 String getAuthorizationCode()
           
 String getAuthState()
           
 Client getClient()
           
 String getClientId()
           
 String getEncodedPrincipal()
           
 List<String> getGrantedScopes()
           
 AuthenticatedPrincipal getPrincipal()
           
 String getRedirectUri()
           
 List<String> getRequestedScopes()
           
 String getResponseType()
           
 String getState()
           
 void setAuthorizationCode(String authorizationCode)
           
 void setAuthState(String authState)
           
 void setClient(Client client)
           
 void setClientId(String clientId)
           
 void setGrantedScopes(List<String> grantedScopes)
           
 void setPrincipal(AuthenticatedPrincipal principal)
           
 void setRedirectUri(String redirectUri)
           
 void setRequestedScopes(List<String> requestedScopes)
           
 void setResponseType(String responseType)
           
 void setState(String state)
           
 boolean validate(javax.validation.ConstraintValidatorContext context)
          Template method that validates the state of an AbstractEntity.
 
Methods inherited from class org.surfnet.oaaas.model.AbstractEntity
equals, getCreationDate, getId, getModificationDate, hashCode, setId, toString, updateTimeStamps, violation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuthorizationRequest

public AuthorizationRequest()

AuthorizationRequest

public AuthorizationRequest(String responseType,
                            String clientId,
                            String redirectUri,
                            List<String> requestedScopes,
                            String state,
                            String authState)
Method Detail

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.