public abstract class JWTCallerPrincipal
extends java.lang.Object
Constructor and Description |
---|
JWTCallerPrincipal(java.lang.String name)
Create a JWTCallerPrincipal with the caller's name
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.Optional<T> |
claim(java.lang.String claimName) |
java.lang.String |
getName() |
abstract java.lang.String |
toString(boolean showAll)
Generate a human readable version of the caller principal and associated JWT.
|
public JWTCallerPrincipal(java.lang.String name)
name
- - caller's namepublic java.lang.String getName()
public abstract java.lang.String toString(boolean showAll)
showAll
- - should all claims associated with the JWT be displayed or should only those defined in the
JsonWebToken interface be displayed.public <T> java.util.Optional<T> claim(java.lang.String claimName)