Class VerifiedClaims

    • Constructor Detail

      • VerifiedClaims

        public VerifiedClaims()
    • Method Detail

      • getVerification

        public Verification getVerification()
        Get information about the verification.
        Returns:
        The information about the verification.
      • setVerification

        public VerifiedClaims setVerification​(Verification verification)
        Set information about the verification.
        Parameters:
        verification - The information about the verification.
        Returns:
        this object.
      • containsVerification

        public boolean containsVerification()
        Check if this object contains "verification".
        Returns:
        true if this object contains "verification".
      • removeVerification

        public Verification removeVerification()
        Remove "verification" from this object.
        Returns:
        The old value that may have existed before removal.
      • getClaims

        public Claims getClaims()
        Get the verified claims.
        Returns:
        The verified claims.
      • setClaims

        public VerifiedClaims setClaims​(Claims claims)
        Set the verified claims.
        Parameters:
        claims - The verified claims.
        Returns:
        this object.
      • containsClaims

        public boolean containsClaims()
        Check if this object contains "claims".
        Returns:
        true if this object contains "claims".
      • removeClaims

        public Claims removeClaims()
        Remove "claims" from this object.
        Returns:
        The old value that may have existed before removal.
      • addClaim

        public VerifiedClaims addClaim​(String name,
                                       Object value)
        Add a verified claim.
        Parameters:
        name - The name of the claim.
        value - The value of the claim.
        Returns:
        this object.
      • extract

        public static VerifiedClaims extract​(Map<?,​?> map,
                                             String key)
                                      throws IdentityAssuranceException
        Create a VerifiedClaims instance from an object in the given map.
        Parameters:
        map - A map that may contain "verified_claims".
        key - The key that identifies the object in the map. In normal cases, the key is "verified_claims".
        Returns:
        A VerifiedClaims instance that represents "verified_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).