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)
Validate a Token using the given TokenValidatorParameters.
|
TokenValidatorResponse |
validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.
|
public boolean canHandleToken(ReceivedToken validateTarget)
canHandleToken
in interface TokenValidator
public boolean canHandleToken(ReceivedToken validateTarget, String realm)
canHandleToken
in interface TokenValidator
public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
validateToken
in interface TokenValidator
protected void validateToken(JwtToken jwt)
TokenValidator
validateToken
in interface TokenValidator
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)
Copyright © 2017 JBoss by Red Hat. All rights reserved.