Package org.jenkinsci.plugins.oic
Class OicTokenResponse
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.client.auth.oauth2.TokenResponse
org.jenkinsci.plugins.oic.OicTokenResponse
public class OicTokenResponse
extends com.google.api.client.auth.oauth2.TokenResponse
Custom TokenResponse with id_token capabilities
Customisation includes:
- expires_in: can be Long or String of Long
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.FlagsNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()clonebooleanOverriding equals()final LongReturns the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.final StringinthashCode()Overriding hashCode()com.google.api.client.auth.openidconnect.IdTokensetAccessToken(String str) setExpiresInSeconds(Long expiresInSeconds) Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.setIdToken(String str) setRefreshToken(String str) setTokenType(String str) Methods inherited from class com.google.api.client.auth.oauth2.TokenResponse
getAccessToken, getRefreshToken, getScope, getTokenTypeMethods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toStringMethods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysMethods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
OicTokenResponse
public OicTokenResponse()
-
-
Method Details
-
getIdToken
-
setIdToken
-
parseIdToken
- Throws:
IOException
-
getExpiresInSeconds
Returns the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.- Overrides:
getExpiresInSecondsin classcom.google.api.client.auth.oauth2.TokenResponse
-
setExpiresInSeconds
Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornullfor none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Overrides:
setExpiresInSecondsin classcom.google.api.client.auth.oauth2.TokenResponse
-
clone
clone- Overrides:
clonein classcom.google.api.client.auth.oauth2.TokenResponse
-
equals
Overriding equals() -
hashCode
public int hashCode()Overriding hashCode() -
set
- Overrides:
setin classcom.google.api.client.auth.oauth2.TokenResponse
-
setAccessToken
- Overrides:
setAccessTokenin classcom.google.api.client.auth.oauth2.TokenResponse
-
setRefreshToken
- Overrides:
setRefreshTokenin classcom.google.api.client.auth.oauth2.TokenResponse
-
setScope
- Overrides:
setScopein classcom.google.api.client.auth.oauth2.TokenResponse
-
setTokenType
- Overrides:
setTokenTypein classcom.google.api.client.auth.oauth2.TokenResponse
-