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 ofJsonWebToken
with 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 protected
JsonWebTokenImpl()
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.Object
abacAttributeRaw(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> T
getClaim(String claimName)
Deprecated, for removal: This API element is subject to removal in a future version.<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 versionsSet<String>
getClaimNames()
Deprecated, for removal: This API element is subject to removal in a future version.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.String
id()
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:
getName
in interfaceJsonWebToken
- Specified by:
getName
in interfacePrincipal
-
getClaimNames
public Set<String> getClaimNames()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getClaimNames
in interfaceJsonWebToken
-
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 interfaceJsonWebToken
-
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.
-
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 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:AbacSupport
A collection of all property names in this container.- Specified by:
abacAttributeNames
in 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
-
-