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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested 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 Constructor Description OicTokenResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OicTokenResponse
clone()
cloneboolean
equals(Object o)
Overriding equals()Long
getExpiresInSeconds()
Returns the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.String
getIdToken()
int
hashCode()
Overriding hashCode()com.google.api.client.auth.openidconnect.IdToken
parseIdToken()
OicTokenResponse
set(String str, Object obj)
OicTokenResponse
setAccessToken(String str)
OicTokenResponse
setExpiresInSeconds(Long expiresInSeconds)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.OicTokenResponse
setIdToken(String str)
OicTokenResponse
setRefreshToken(String str)
OicTokenResponse
setScope(String str)
OicTokenResponse
setTokenType(String str)
-
Methods inherited from class com.google.api.client.auth.oauth2.TokenResponse
getAccessToken, getRefreshToken, getScope, getTokenType
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
getIdToken
public final String getIdToken()
-
setIdToken
public OicTokenResponse setIdToken(String str)
-
parseIdToken
public com.google.api.client.auth.openidconnect.IdToken parseIdToken() throws IOException
- Throws:
IOException
-
getExpiresInSeconds
public final Long getExpiresInSeconds()
Returns the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.- Overrides:
getExpiresInSeconds
in classcom.google.api.client.auth.oauth2.TokenResponse
-
setExpiresInSeconds
public OicTokenResponse setExpiresInSeconds(Long expiresInSeconds)
Sets the lifetime in seconds of the access token (for example 3600 for an hour) ornull
for none.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
- Overrides:
setExpiresInSeconds
in classcom.google.api.client.auth.oauth2.TokenResponse
-
clone
public OicTokenResponse clone()
clone- Overrides:
clone
in classcom.google.api.client.auth.oauth2.TokenResponse
-
equals
public boolean equals(Object o)
Overriding equals()
-
hashCode
public int hashCode()
Overriding hashCode()
-
set
public OicTokenResponse set(String str, Object obj)
- Overrides:
set
in classcom.google.api.client.auth.oauth2.TokenResponse
-
setAccessToken
public OicTokenResponse setAccessToken(String str)
- Overrides:
setAccessToken
in classcom.google.api.client.auth.oauth2.TokenResponse
-
setRefreshToken
public OicTokenResponse setRefreshToken(String str)
- Overrides:
setRefreshToken
in classcom.google.api.client.auth.oauth2.TokenResponse
-
setScope
public OicTokenResponse setScope(String str)
- Overrides:
setScope
in classcom.google.api.client.auth.oauth2.TokenResponse
-
setTokenType
public OicTokenResponse setTokenType(String str)
- Overrides:
setTokenType
in classcom.google.api.client.auth.oauth2.TokenResponse
-
-