Class OicTokenResponse

  • All Implemented Interfaces:
    Cloneable, Map<String,​Object>

    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
    • Constructor Detail

      • OicTokenResponse

        public OicTokenResponse()
    • Method Detail

      • getIdToken

        public final String getIdToken()
      • 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) or null for none.
        Overrides:
        getExpiresInSeconds in class com.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) or null 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 class com.google.api.client.auth.oauth2.TokenResponse
      • clone

        public OicTokenResponse clone()
        clone
        Overrides:
        clone in class com.google.api.client.auth.oauth2.TokenResponse
      • equals

        public boolean equals​(Object o)
        Overriding equals()
        Specified by:
        equals in interface Map<String,​Object>
        Overrides:
        equals in class com.google.api.client.util.GenericData
      • hashCode

        public int hashCode()
        Overriding hashCode()
        Specified by:
        hashCode in interface Map<String,​Object>
        Overrides:
        hashCode in class com.google.api.client.util.GenericData
      • setAccessToken

        public OicTokenResponse setAccessToken​(String str)
        Overrides:
        setAccessToken in class com.google.api.client.auth.oauth2.TokenResponse
      • setRefreshToken

        public OicTokenResponse setRefreshToken​(String str)
        Overrides:
        setRefreshToken in class com.google.api.client.auth.oauth2.TokenResponse
      • setScope

        public OicTokenResponse setScope​(String str)
        Overrides:
        setScope in class com.google.api.client.auth.oauth2.TokenResponse
      • setTokenType

        public OicTokenResponse setTokenType​(String str)
        Overrides:
        setTokenType in class com.google.api.client.auth.oauth2.TokenResponse