com.ibm.mfp.java.token.validator

Class TokenIntrospectionData

  • java.lang.Object
    • com.ibm.mfp.java.token.validator.TokenIntrospectionData


  • public class TokenIntrospectionData
    extends java.lang.Object
    Following spec: https://tools.ietf.org/html/draft-ietf-oauth-introspection-11#section-2.2 OAuth 2.0 Token Introspection - Introspection Response
    • Constructor Detail

      • TokenIntrospectionData

        public TokenIntrospectionData(java.lang.String scope,
                              long expiration,
                              boolean active)
        Create active token data
        Parameters:
        scope - token scope
        expiration - token expiration
      • TokenIntrospectionData

        public TokenIntrospectionData(java.lang.String scope,
                              long expiration)
        Create active token data
        Parameters:
        scope - token scope
        expiration - token expiration
      • TokenIntrospectionData

        public TokenIntrospectionData()
    • Method Detail

      • setData

        public void setData(java.util.Map data)
      • getData

        public java.util.Map getData()
      • isActive

        public boolean isActive()
      • getScope

        public java.lang.String getScope()
      • getExpiration

        public long getExpiration()
      • isScopeCovered

        public boolean isScopeCovered(java.lang.String requiredScope)


© Copyright IBM Corp. 2006, 2015. All Rights Reserved.