Class JsonWebTokenImpl

java.lang.Object
io.helidon.microprofile.jwt.auth.JsonWebTokenImpl
All Implemented Interfaces:
Principal, AbacSupport, Principal, JsonWebToken

@Deprecated(forRemoval=true, since="2.4.0") public class JsonWebTokenImpl extends Object implements JsonWebToken, Principal
Deprecated, for removal: This API element is subject to removal in a future version.
this class will not be public in future versions of Helidon
Implementation of JsonWebToken with additional support of AbacSupport.
  • Constructor Details

    • JsonWebTokenImpl

      protected JsonWebTokenImpl()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getName

      public String getName()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getName in interface JsonWebToken
      Specified by:
      getName in interface Principal
    • getClaimNames

      public Set<String> getClaimNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getClaimNames in interface JsonWebToken
    • getClaim

      public <T> T getClaim(String claimName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getClaim in interface JsonWebToken
    • id

      public String id()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Principal
      Id of this principal.
      Specified by:
      id in interface Principal
      Returns:
      id if defined, name otherwise
    • abacAttributeRaw

      public Object abacAttributeRaw(String key)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: AbacSupport
      Return the actual property value or null if not present. This is the only method that needs to be implemented.
      Specified by:
      abacAttributeRaw in interface AbacSupport
      Parameters:
      key - key (name) of the property
      Returns:
      value of the property or null
    • abacAttributeNames

      public Collection<String> abacAttributeNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: AbacSupport
      A collection of all property names in this container.
      Specified by:
      abacAttributeNames in interface AbacSupport
      Returns:
      collection of keys
    • getClaim

      @Deprecated(forRemoval=true, since="2.4.0") public <T> T getClaim(String claimName, Class<T> clazz)
      Deprecated, for removal: This API element is subject to removal in a future version.
      This class will no longer be public in future versions
      Produce a claim based on its name and expected class.
      Type Parameters:
      T - type
      Parameters:
      claimName - name of the claim
      clazz - expected type
      Returns:
      claim value