Class OAuth2Response

java.lang.Object
de.dlr.proseo.api.prip.rest.model.OAuth2Response
All Implemented Interfaces:
Serializable

public class OAuth2Response extends Object implements Serializable
See Also:
  • Field Details

    • serialVersionUID

      static final long serialVersionUID
      See Also:
    • accessToken

      protected String accessToken
      The access token issued by the authorization server (as per RFC 6749)
    • tokenType

      protected String tokenType
      The type of the token issued (as per RFC 6749; always "bearer")
    • expiresIn

      protected Long expiresIn
      The lifetime in seconds of the access token. For example, the value 3600 denotes that the access token will expire in one hour from the time the response was generated (as per RFC 6749)
  • Constructor Details

    • OAuth2Response

      public OAuth2Response()
      Creates a new OAuth2Response.
    • OAuth2Response

      public OAuth2Response(String accessToken, String tokenType, Long expiresIn)
      Creates a new OAuth2Response.
  • Method Details

    • getAccessToken

      @NotNull public @NotNull String getAccessToken()
      Returns the accessToken.
      Returns:
      accessToken
    • setAccessToken

      public void setAccessToken(String accessToken)
      Set the accessToken.
      Parameters:
      accessToken - the new accessToken
    • getTokenType

      @NotNull public @NotNull String getTokenType()
      Returns the tokenType.
      Returns:
      tokenType
    • setTokenType

      public void setTokenType(String tokenType)
      Set the tokenType.
      Parameters:
      tokenType - the new tokenType
    • getExpiresIn

      @NotNull public @NotNull Long getExpiresIn()
      Returns the expiresIn.
      Returns:
      expiresIn
    • setExpiresIn

      public void setExpiresIn(Long expiresIn)
      Set the expiresIn.
      Parameters:
      expiresIn - the new expiresIn
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object