Class JwtClaimsSetAdapter

java.lang.Object
io.micronaut.security.token.jwt.generator.claims.JwtClaimsSetAdapter
All Implemented Interfaces:
Claims

public class JwtClaimsSetAdapter extends Object implements Claims
Adapts from JWTClaimsSet to Claims.
Since:
1.1.0
Author:
Sergio del Amo
  • Constructor Details

    • JwtClaimsSetAdapter

      public JwtClaimsSetAdapter(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
      Constructor.
      Parameters:
      jwtClaimsSet - a JWT Claims set
  • Method Details

    • get

      @Nullable public @Nullable Object get(String claimName)
      Description copied from interface: Claims
      Retrieves a value from the claims for the given name.
      Specified by:
      get in interface Claims
      Parameters:
      claimName - the claim name
      Returns:
      null if the claim not exist or the claim value.
    • names

      @NonNull public @NonNull Set<String> names()
      Specified by:
      names in interface Claims
      Returns:
      All claim names.
    • contains

      public boolean contains(String claimName)
      Specified by:
      contains in interface Claims
      Parameters:
      claimName - the claim name
      Returns:
      false if the claim does not exist.