Class JWTTokenValidator
- java.lang.Object
-
- org.apache.cxf.sts.token.validator.jwt.JWTTokenValidator
-
- All Implemented Interfaces:
TokenValidator
public class JWTTokenValidator extends Object implements TokenValidator
Validate a SAML Assertion. It is valid if it was issued and signed by this STS.
-
-
Constructor Summary
Constructors Constructor Description JWTTokenValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandleToken(ReceivedToken validateTarget)Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.booleancanHandleToken(ReceivedToken validateTarget, String realm)Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.intgetClockOffset()JWTRealmCodecgetRealmCodec()JWTRoleParsergetRoleParser()intgetTtl()voidsetClockOffset(int clockOffset)voidsetRealmCodec(JWTRealmCodec realmCodec)voidsetRoleParser(JWTRoleParser roleParser)voidsetTtl(int ttl)protected voidvalidateToken(JwtToken jwt)TokenValidatorResponsevalidateToken(TokenValidatorParameters tokenParameters)Validate a Token using the given TokenValidatorParameters.
-
-
-
Method Detail
-
canHandleToken
public boolean canHandleToken(ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.- Specified by:
canHandleTokenin interfaceTokenValidator
-
canHandleToken
public boolean canHandleToken(ReceivedToken validateTarget, String realm)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument. The realm is ignored in this Validator.- Specified by:
canHandleTokenin interfaceTokenValidator
-
validateToken
public TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.- Specified by:
validateTokenin interfaceTokenValidator
-
validateToken
protected void validateToken(JwtToken jwt)
-
getClockOffset
public int getClockOffset()
-
setClockOffset
public void setClockOffset(int clockOffset)
-
getTtl
public int getTtl()
-
setTtl
public void setTtl(int ttl)
-
getRoleParser
public JWTRoleParser getRoleParser()
-
setRoleParser
public void setRoleParser(JWTRoleParser roleParser)
-
getRealmCodec
public JWTRealmCodec getRealmCodec()
-
setRealmCodec
public void setRealmCodec(JWTRealmCodec realmCodec)
-
-