Class Claims

    • Constructor Detail

      • Claims

        public Claims()
    • Method Detail

      • putClaim

        public Claims putClaim​(String claimName,
                               Object claimValue)
        Put a claim to this object.

        This method internally calls put(String, Object) method to register the given pair of claim name and claim value and then returns this object.

        Parameters:
        claimName - The claim name.
        claimValue - The claim value.
        Returns:
        this object.
        Since:
        2.65
      • extract

        public static Claims extract​(Map<?,​?> map,
                                     String key)
                              throws IdentityAssuranceException
        Create a Claims instance from an object in the given map.
        Parameters:
        map - A map that may contain "claims".
        key - The key that identifies the object in the map. In normal cases, the key is "claims".
        Returns:
        A Claims instance that represents "claims". If the map does not contain the given key, null is returned.
        Throws:
        IdentityAssuranceException - The structure of the map does not conform to the specification (OpenID Connect for Identity Assurance 1.0).