Apache CXF API

org.apache.cxf.sts.token.validator
Interface TokenValidator

All Known Implementing Classes:
SAMLTokenValidator, SCTValidator, UsernameTokenValidator, X509TokenValidator

public interface TokenValidator

An interface that can validate a security token.


Method Summary
 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 in the given realm.
 TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
          Validate a Token using the given TokenValidatorParameters.
 

Method Detail

canHandleToken

boolean canHandleToken(ReceivedToken validateTarget)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument.


canHandleToken

boolean canHandleToken(ReceivedToken validateTarget,
                       String realm)
Return true if this TokenValidator implementation is capable of validating the ReceivedToken argument in the given realm.


validateToken

TokenValidatorResponse validateToken(TokenValidatorParameters tokenParameters)
Validate a Token using the given TokenValidatorParameters.


Apache CXF API

Apache CXF