public abstract class JWTCallerPrincipal extends Object implements org.eclipse.microprofile.jwt.JsonWebToken
Constructor and Description |
---|
JWTCallerPrincipal(String rawToken,
String tokenType)
Create a JWTCallerPrincipal with the caller's name
|
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<String> |
doGetClaimNames() |
<T> T |
getClaim(String claimName) |
Set<String> |
getClaimNames() |
protected org.eclipse.microprofile.jwt.Claims |
getClaimType(String claimName) |
protected abstract Object |
getClaimValue(String claimName) |
String |
getName() |
boolean |
implies(Subject subject) |
String |
toString() |
String |
toString(boolean showAll)
TODO: showAll is ignored and currently assumed true
|
protected javax.json.JsonValue |
wrapClaimValue(Object value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public String getName()
public Set<String> getClaimNames()
getClaimNames
in interface org.eclipse.microprofile.jwt.JsonWebToken
protected abstract Collection<String> doGetClaimNames()
public <T> T getClaim(String claimName)
getClaim
in interface org.eclipse.microprofile.jwt.JsonWebToken
public String toString()
public 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.protected javax.json.JsonValue wrapClaimValue(Object value)
protected org.eclipse.microprofile.jwt.Claims getClaimType(String claimName)
Copyright © 2018–2021. All rights reserved.