Class JWTTokenValidator
java.lang.Object
org.apache.cxf.sts.token.validator.jwt.JWTTokenValidator
- All Implemented Interfaces:
TokenValidator
Validate a SAML Assertion. It is valid if it was issued and signed by this STS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleToken(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.intintgetTtl()voidsetClockOffset(int clockOffset) voidsetRealmCodec(JWTRealmCodec realmCodec) voidsetRoleParser(JWTRoleParser roleParser) voidsetTtl(int ttl) protected voidvalidateToken(org.apache.cxf.rs.security.jose.jwt.JwtToken jwt) validateToken(TokenValidatorParameters tokenParameters) Validate a Token using the given TokenValidatorParameters.
-
Constructor Details
-
JWTTokenValidator
public JWTTokenValidator()
-
-
Method Details
-
canHandleToken
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.- Specified by:
canHandleTokenin interfaceTokenValidator
-
canHandleToken
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
Validate a Token using the given TokenValidatorParameters.- Specified by:
validateTokenin interfaceTokenValidator
-
validateToken
protected void validateToken(org.apache.cxf.rs.security.jose.jwt.JwtToken jwt) -
getClockOffset
public int getClockOffset() -
setClockOffset
public void setClockOffset(int clockOffset) -
getTtl
public int getTtl() -
setTtl
public void setTtl(int ttl) -
getRoleParser
-
setRoleParser
-
getRealmCodec
-
setRealmCodec
-