Package org.yamcs.client
Class OAuth2Credentials
java.lang.Object
org.yamcs.client.OAuth2Credentials
- All Implemented Interfaces:
Credentials
Contains the authorization state for an identified user or service account.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2Credentials
fromJsonTokenResponse
(String json) Returns a JSON string with the full unmodified token response.boolean
void
modifyRequest
(io.netty.handler.codec.http.HttpRequest request) void
setSpnegoInfo
(SpnegoInfo spnegoInfo)
-
Constructor Details
-
OAuth2Credentials
-
-
Method Details
-
getTokenResponse
Returns a JSON string with the full unmodified token response. -
getAccessToken
-
getRefreshToken
-
getSpnegoInfo
-
setSpnegoInfo
-
isExpired
public boolean isExpired()- Specified by:
isExpired
in interfaceCredentials
-
modifyRequest
public void modifyRequest(io.netty.handler.codec.http.HttpRequest request) - Specified by:
modifyRequest
in interfaceCredentials
-
fromJsonTokenResponse
-