Apache CXF API

org.apache.cxf.ws.security.trust
Class STSTokenValidator

java.lang.Object
  extended by org.apache.cxf.ws.security.trust.STSTokenValidator
All Implemented Interfaces:
org.apache.wss4j.dom.validate.Validator

public class STSTokenValidator
extends Object
implements org.apache.wss4j.dom.validate.Validator


Constructor Summary
STSTokenValidator()
           
STSTokenValidator(boolean alwaysValidateToSts)
          Construct a new instance.
 
Method Summary
protected  boolean isValidatedLocally(org.apache.wss4j.dom.validate.Credential credential, org.apache.wss4j.dom.handler.RequestData data)
           
 org.apache.wss4j.dom.validate.Credential validate(org.apache.wss4j.dom.validate.Credential credential, org.apache.wss4j.dom.handler.RequestData data)
           
 org.apache.wss4j.dom.validate.Credential validateWithSTS(org.apache.wss4j.dom.validate.Credential credential, Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STSTokenValidator

public STSTokenValidator()

STSTokenValidator

public STSTokenValidator(boolean alwaysValidateToSts)
Construct a new instance.

Parameters:
alwaysValidateToSts - whether to always validate the token to the STS
Method Detail

validate

public org.apache.wss4j.dom.validate.Credential validate(org.apache.wss4j.dom.validate.Credential credential,
                                                         org.apache.wss4j.dom.handler.RequestData data)
                                                  throws org.apache.wss4j.common.ext.WSSecurityException
Specified by:
validate in interface org.apache.wss4j.dom.validate.Validator
Throws:
org.apache.wss4j.common.ext.WSSecurityException

validateWithSTS

public org.apache.wss4j.dom.validate.Credential validateWithSTS(org.apache.wss4j.dom.validate.Credential credential,
                                                                Message message)
                                                         throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

isValidatedLocally

protected boolean isValidatedLocally(org.apache.wss4j.dom.validate.Credential credential,
                                     org.apache.wss4j.dom.handler.RequestData data)
                              throws org.apache.wss4j.common.ext.WSSecurityException
Throws:
org.apache.wss4j.common.ext.WSSecurityException

Apache CXF API

Apache CXF