Class ServerAuthorizationCodeGrant

java.lang.Object
org.apache.cxf.rs.security.oauth2.grants.code.AuthorizationCodeGrant
org.apache.cxf.rs.security.oauth2.grants.code.ServerAuthorizationCodeGrant
All Implemented Interfaces:
Serializable, AccessTokenGrant

@Entity public class ServerAuthorizationCodeGrant extends AuthorizationCodeGrant
The Authorization Code Grant representation visible to the server
See Also:
  • Constructor Details

    • ServerAuthorizationCodeGrant

      public ServerAuthorizationCodeGrant()
    • ServerAuthorizationCodeGrant

      public ServerAuthorizationCodeGrant(Client client, long lifetime)
    • ServerAuthorizationCodeGrant

      public ServerAuthorizationCodeGrant(Client client, String code, long expiresIn, long issuedAt)
  • Method Details

    • getIssuedAt

      public long getIssuedAt()
      Returns the time (in seconds) this grant was issued at
      Returns:
      the seconds
    • setIssuedAt

      public void setIssuedAt(long issuedAt)
    • getExpiresIn

      public long getExpiresIn()
      Returns the number of seconds this grant can be valid after it was issued
      Returns:
      the seconds this grant will be valid for
    • setExpiresIn

      public void setExpiresIn(long expiresIn)
    • getClient

      public Client getClient()
      Returns the reference to Client
      Returns:
      the client
    • setClient

      public void setClient(Client c)
    • getApprovedScopes

      public List<String> getApprovedScopes()
      Gets the scopes explicitly approved by the end user
      Returns:
      the approved scopes
    • setApprovedScopes

      public void setApprovedScopes(List<String> scopes)
      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:
      scopes - the approved scopes
    • getSubject

      public UserSubject getSubject()
      Gets the user subject representing the end user
      Returns:
      the subject
    • setSubject

      public void setSubject(UserSubject subject)
      Sets the user subject representing the end user
      Parameters:
      subject - the subject
    • getAudience

      public String getAudience()
    • setAudience

      public void setAudience(String audience)
    • getClientCodeChallenge

      public String getClientCodeChallenge()
    • setClientCodeChallenge

      public void setClientCodeChallenge(String clientCodeChallenge)
    • getRequestedScopes

      public List<String> getRequestedScopes()
    • setRequestedScopes

      public void setRequestedScopes(List<String> requestedScopes)
    • getNonce

      public String getNonce()
    • setNonce

      public void setNonce(String nonce)
    • isPreauthorizedTokenAvailable

      public boolean isPreauthorizedTokenAvailable()
    • setPreauthorizedTokenAvailable

      public void setPreauthorizedTokenAvailable(boolean preauthorizedTokenAvailable)
    • getExtraProperties

      public Map<String,String> getExtraProperties()
    • setExtraProperties

      public void setExtraProperties(Map<String,String> extraProperties)
    • getResponseType

      public String getResponseType()
    • setResponseType

      public void setResponseType(String responseType)
    • getClientCodeChallengeMethod

      public String getClientCodeChallengeMethod()
    • setClientCodeChallengeMethod

      public void setClientCodeChallengeMethod(String clientCodeChallengeMethod)