Class IntrospectionResponse

    • Constructor Detail

      • IntrospectionResponse

        public IntrospectionResponse()
        Constructor.
      • IntrospectionResponse

        public IntrospectionResponse​(boolean active)
        Parameters:
        active - Boolean indicator of whether or not the presented token is currently active.
    • Method Detail

      • addExtension

        public void addExtension​(java.lang.String key,
                                 java.lang.Object value)
        Parameters:
        key - Key
        value - Value
      • setExtensions

        public void setExtensions​(java.util.Map<java.lang.String,​java.lang.Object> extensions)
        Parameters:
        extensions - Extensions
      • getExtensions

        public java.util.Map<java.lang.String,​java.lang.Object> getExtensions()
        Returns:
        Extensions
      • isActive

        public boolean isActive()
        Returns:
        Boolean indicator of whether or not the presented token is currently active.
      • setActive

        public void setActive​(boolean active)
        Parameters:
        active - Boolean indicator of whether or not the presented token is currently active.
      • getScope

        @Nullable
        public java.lang.String getScope()
        Returns:
        A JSON string containing a space-separated list of scopes associated with this token.
      • setScope

        public void setScope​(@Nullable
                             java.lang.String scope)
        Parameters:
        scope - A JSON string containing a space-separated list of scopes associated with this token.
      • getClientId

        @Nullable
        public java.lang.String getClientId()
        Returns:
        Client identifier for the OAuth 2.0 client that requested this token.
      • setClientId

        public void setClientId​(@Nullable
                                java.lang.String clientId)
        Parameters:
        clientId - Client identifier for the OAuth 2.0 client that requested this token.
      • getUsername

        @Nullable
        public java.lang.String getUsername()
        Returns:
        Human-readable identifier for the resource owner who authorized this token.
      • setUsername

        public void setUsername​(@Nullable
                                java.lang.String username)
        Parameters:
        username - Human-readable identifier for the resource owner who authorized this token.
      • getTokenType

        public java.lang.String getTokenType()
        Returns:
        Type of token.
      • setTokenType

        public void setTokenType​(java.lang.String tokenType)
        Parameters:
        tokenType - Type of token.
      • getExp

        @Nullable
        public java.lang.Long getExp()
        Returns:
        Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire as defined in JWT.
      • setExp

        public void setExp​(@Nullable
                           java.lang.Long exp)
        Parameters:
        exp - Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token will expire as defined in JWT.
      • getIat

        @Nullable
        public java.lang.Long getIat()
        Returns:
        Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
      • setIat

        public void setIat​(@Nullable
                           java.lang.Long iat)
        Parameters:
        iat - Integer timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
      • getNbf

        @Nullable
        public java.lang.Long getNbf()
        Returns:
        Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before, as defined in JWT.
      • setNbf

        public void setNbf​(@Nullable
                           java.lang.Long nbf)
        Parameters:
        nbf - Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token is not to be used before, as defined in JWT.
      • getSub

        @Nullable
        public java.lang.String getSub()
        Returns:
        Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.
      • setSub

        public void setSub​(@Nullable
                           java.lang.String sub)
        Parameters:
        sub - Subject of the token, as defined in JWT [RFC7519]. Usually a machine-readable identifier of the resource owner who authorized this token.
      • getAud

        @Nullable
        public java.lang.String getAud()
        Returns:
        Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT
      • setAud

        public void setAud​(@Nullable
                           java.lang.String aud)
        Parameters:
        aud - Service-specific string identifier or list of string identifiers representing the intended audience for this token, as defined in JWT
      • getIss

        @Nullable
        public java.lang.String getIss()
        Returns:
        Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
      • setIss

        public void setIss​(@Nullable
                           java.lang.String iss)
        Parameters:
        iss - Long timestamp, measured in the number of seconds since January 1 1970 UTC, indicating when this token was originally issued, as defined in JWT.
      • getJti

        @Nullable
        public java.lang.String getJti()
        Returns:
        String identifier for the token, as defined in JWT.
      • setJti

        public void setJti​(@Nullable
                           java.lang.String jti)
        Parameters:
        jti - String identifier for the token, as defined in JWT.