Package io.helidon.microprofile.jwt.auth
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 HelidonImplementation ofJsonWebTokenwith additional support ofAbacSupport.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.helidon.security.util.AbacSupport
AbacSupport.BasicAttributes
-
Nested classes/interfaces inherited from interface io.helidon.security.Principal
Principal.Builder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsonWebTokenImpl()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Collection<String>abacAttributeNames()Deprecated, for removal: This API element is subject to removal in a future version.A collection of all property names in this container.ObjectabacAttributeRaw(String key)Deprecated, for removal: This API element is subject to removal in a future version.Return the actual property value or null if not present.<T> TgetClaim(String claimName)Deprecated, for removal: This API element is subject to removal in a future version.<T> TgetClaim(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 versionsSet<String>getClaimNames()Deprecated, for removal: This API element is subject to removal in a future version.StringgetName()Deprecated, for removal: This API element is subject to removal in a future version.Stringid()Deprecated, for removal: This API element is subject to removal in a future version.Id of this principal.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.helidon.security.util.AbacSupport
abacAttribute
-
Methods inherited from interface org.eclipse.microprofile.jwt.JsonWebToken
claim, containsClaim, getAudience, getExpirationTime, getGroups, getIssuedAtTime, getIssuer, getRawToken, getSubject, getTokenID
-
-
-
-
Method Detail
-
getName
public String getName()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getNamein interfaceJsonWebToken- Specified by:
getNamein interfacePrincipal
-
getClaimNames
public Set<String> getClaimNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getClaimNamesin interfaceJsonWebToken
-
getClaim
public <T> T getClaim(String claimName)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getClaimin interfaceJsonWebToken
-
id
public String id()
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PrincipalId of this principal.
-
abacAttributeRaw
public Object abacAttributeRaw(String key)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:AbacSupportReturn the actual property value or null if not present. This is the only method that needs to be implemented.- Specified by:
abacAttributeRawin interfaceAbacSupport- 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:AbacSupportA collection of all property names in this container.- Specified by:
abacAttributeNamesin interfaceAbacSupport- 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 versionsProduce a claim based on its name and expected class.- Type Parameters:
T- type- Parameters:
claimName- name of the claimclazz- expected type- Returns:
- claim value
-
-