public class JWTTokenValidator extends Object implements TokenValidator
| Constructor and Description |
|---|
JWTTokenValidator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canHandleToken(ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the
ReceivedToken argument.
|
boolean |
canHandleToken(ReceivedToken validateTarget,
String realm)
Return true if this TokenValidator implementation is capable of validating the
ReceivedToken argument.
|
int |
getClockOffset() |
JWTRealmCodec |
getRealmCodec() |
JWTRoleParser |
getRoleParser() |
int |
getTtl() |
void |
setClockOffset(int clockOffset) |
void |
setRealmCodec(JWTRealmCodec realmCodec) |
void |
setRoleParser(JWTRoleParser roleParser) |
void |
setTtl(int ttl) |
protected void |
validateToken(JwtToken jwt) |
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public boolean canHandleToken(ReceivedToken validateTarget)
canHandleToken in interface TokenValidatorpublic boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken in interface TokenValidatorpublic TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken in interface TokenValidatorprotected void validateToken(JwtToken jwt)
public int getClockOffset()
public void setClockOffset(int clockOffset)
public int getTtl()
public void setTtl(int ttl)
public JWTRoleParser getRoleParser()
public void setRoleParser(JWTRoleParser roleParser)
public JWTRealmCodec getRealmCodec()
public void setRealmCodec(JWTRealmCodec realmCodec)
Apache CXF