public abstract class JWTCallerPrincipal extends Object
| Constructor and Description |
|---|
JWTCallerPrincipal(String name)
Create a JWTCallerPrincipal with the caller's name
|
| Modifier and Type | Method and Description |
|---|---|
<T> Optional<T> |
claim(String claimName) |
String |
getName() |
abstract String |
toString(boolean showAll)
Generate a human readable version of the caller principal and associated JWT.
|
public JWTCallerPrincipal(String name)
name - - caller's namepublic String getName()
public abstract 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.Copyright © 2018 JBoss by Red Hat. All rights reserved.