A Set of claims that can be used to verify claims requested by OAuth clients.

A ClaimSet is an immutable type, and all methods returning a ClaimSet return new instances.

Hierarchy

  • ClaimSet

Properties

all: any[]

Returns a Set of all claims in this ClaimSet.

allClaimNames: any[]

Returns the Set of names of all claims in this ClaimSet.

onlyRequiredClaims: ClaimSet

Returns a new ClaimSet containing only claims where ClaimConfig#isRequired() returns true.

Methods

  • Check whether this ClaimSet is a subset of the given set of claim names; i.e. this set is a subset of the given set.

    Parameters

    • claimNames: string[]

    Returns boolean

  • Check whether this ClaimSet contains a claim with the given name.

    Parameters

    • claimName: string

    Returns boolean

  • Check whether this ClaimSet contains all the named claims.

    Parameters

    • claimNames: string[]

    Returns boolean

  • Filters this ClaimSet given a set of claim names; returning only the set of claims named.

    Parameters

    • claimNames: any[]

    Returns ClaimSet

  • Filters this ClaimSet given a map of scopes; returning the set of claims covered by those scopes.

    Parameters

    Returns ClaimSet

  • Get the claim with the given name.

    Parameters

    • claimName: string

    Returns null | ClaimConfig

  • Returns a Set of all claims in this ClaimSet.

    Returns any[]

  • Returns the Set of names of all claims in this ClaimSet.

    Returns any[]

  • Returns a new ClaimSet containing only claims where ClaimConfig#isRequired() returns true.

    Returns ClaimSet

  • Check whether this ClaimSet is empty.

    Returns boolean

  • Returns a new ClaimSet that is the union of the given ClaimSet and this. On overlapping claims, the claims maintained by this ClaimSet are preserved.

    Parameters

    Returns ClaimSet

New Documentation Site Available!


Check out our new docs at curity.io/docs/identity-server/