Class OAuth2Credentials

java.lang.Object
org.yamcs.client.OAuth2Credentials
All Implemented Interfaces:
Credentials

public class OAuth2Credentials extends Object implements Credentials
Contains the authorization state for an identified user or service account.
  • Constructor Details

    • OAuth2Credentials

      public OAuth2Credentials(String accessToken, String refreshToken)
  • Method Details

    • getTokenResponse

      public String getTokenResponse()
      Returns a JSON string with the full unmodified token response.
    • getAccessToken

      public String getAccessToken()
    • getRefreshToken

      public String getRefreshToken()
    • getSpnegoInfo

      public SpnegoInfo getSpnegoInfo()
    • setSpnegoInfo

      public void setSpnegoInfo(SpnegoInfo spnegoInfo)
    • isExpired

      public boolean isExpired()
      Specified by:
      isExpired in interface Credentials
    • modifyRequest

      public void modifyRequest(io.netty.handler.codec.http.HttpRequest request)
      Specified by:
      modifyRequest in interface Credentials
    • fromJsonTokenResponse

      public static OAuth2Credentials fromJsonTokenResponse(String json)