com.holonplatform.auth.jwt.internal

## Class AuthenticationClaimsImpl

- java.lang.Object
- - com.holonplatform.auth.jwt.internal.AuthenticationClaimsImpl

- All Implemented Interfaces:
    AuthenticationClaims

      public class AuthenticationClaimsImpl
      extends Object
      implements AuthenticationClaims

  Default `AuthenticationClaims` implementation
  Since:
    5.0.0

- - ### Field Summary

    - ### Fields inherited from interface com.holonplatform.auth.jwt.AuthenticationClaims

      `CLAIM_NAME_PERMISSIONS, CLAIM_NAME_ROOT`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `AuthenticationClaimsImpl(io.jsonwebtoken.Claims claims)` Constructor

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `get(String claimName, Class<T> requiredType)` Get a claim value by name, if exists

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### AuthenticationClaimsImpl

          public AuthenticationClaimsImpl(io.jsonwebtoken.Claims claims)

      Constructor
      Parameters:
        `claims` - JWT claims

  - ### Method Detail

    - #### get

          public <T> T get(String claimName,
                           Class<T> requiredType)

      Description copied from interface: `AuthenticationClaims`
      Get a claim value by name, if exists
      Specified by:
        `get` in interface `AuthenticationClaims`
      Type Parameters:
        `T` - Claim value type
      Parameters:
        `claimName` - Claim name
        `requiredType` - Expected claim value type
      Returns:
        Claim value, or `null` if claim was not found or has no value

Copyright © 2019 The Holon Platform. All rights reserved.