Apache CXF API

org.apache.cxf.ws.security.wss4j.policyvalidators
Class AbstractSupportingTokenPolicyValidator

java.lang.Object
  extended by org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractTokenPolicyValidator
      extended by org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractSupportingTokenPolicyValidator
All Implemented Interfaces:
SupportingTokenPolicyValidator
Direct Known Subclasses:
ConcreteSupportingTokenPolicyValidator, EncryptedTokenPolicyValidator, EndorsingEncryptedTokenPolicyValidator, EndorsingTokenPolicyValidator, SignedEncryptedTokenPolicyValidator, SignedEndorsingEncryptedTokenPolicyValidator, SignedEndorsingTokenPolicyValidator, SignedTokenPolicyValidator

public abstract class AbstractSupportingTokenPolicyValidator
extends AbstractTokenPolicyValidator
implements SupportingTokenPolicyValidator

A base class to use to validate various SupportingToken policies.


Constructor Summary
AbstractSupportingTokenPolicyValidator()
           
 
Method Summary
protected  boolean processKerberosTokens()
          Process Kerberos Tokens.
protected  boolean processKeyValueTokens()
          Process KeyValue Tokens.
protected  boolean processSAMLTokens()
          Process SAML Tokens.
protected  boolean processSCTokens()
          Process Security Context Tokens.
protected  boolean processUsernameTokens()
          Process UsernameTokens.
protected  boolean processX509Tokens()
          Process X509 Tokens.
 void setDerived(boolean derived)
           
 void setEncrypted(boolean encrypted)
           
 void setEncryptedElements(SignedEncryptedElements encryptedElements)
           
 void setEncryptedParts(SignedEncryptedParts encryptedParts)
           
 void setEncryptedResults(List<org.apache.ws.security.WSSecurityEngineResult> encryptedResults)
           
 void setEndorsed(boolean endorsed)
           
 void setMessage(Message msg)
           
 void setResults(List<org.apache.ws.security.WSSecurityEngineResult> results)
           
 void setSAMLTokenResults(List<org.apache.ws.security.WSSecurityEngineResult> samlResultsList)
          Set the list of SAMLToken results
 void setSigned(boolean signed)
           
 void setSignedElements(SignedEncryptedElements signedElements)
           
 void setSignedParts(SignedEncryptedParts signedParts)
           
 void setSignedResults(List<org.apache.ws.security.WSSecurityEngineResult> signedResults)
           
 void setTimestamp(Element timestamp)
           
 void setTimestampElement(Element timestampElement)
          Set the Timestamp element
 void setUsernameTokenResults(List<org.apache.ws.security.WSSecurityEngineResult> utResultsList, boolean valUsernameToken)
          Set the list of UsernameToken results
 void setUtResults(List<org.apache.ws.security.WSSecurityEngineResult> utResults)
           
 void setValidateUsernameToken(boolean validateUsernameToken)
           
 
Methods inherited from class org.apache.cxf.ws.security.wss4j.policyvalidators.AbstractTokenPolicyValidator
isTokenRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cxf.ws.security.wss4j.policyvalidators.SupportingTokenPolicyValidator
validatePolicy
 

Constructor Detail

AbstractSupportingTokenPolicyValidator

public AbstractSupportingTokenPolicyValidator()
Method Detail

setUsernameTokenResults

public void setUsernameTokenResults(List<org.apache.ws.security.WSSecurityEngineResult> utResultsList,
                                    boolean valUsernameToken)
Set the list of UsernameToken results

Specified by:
setUsernameTokenResults in interface SupportingTokenPolicyValidator

setSAMLTokenResults

public void setSAMLTokenResults(List<org.apache.ws.security.WSSecurityEngineResult> samlResultsList)
Set the list of SAMLToken results

Specified by:
setSAMLTokenResults in interface SupportingTokenPolicyValidator

setTimestampElement

public void setTimestampElement(Element timestampElement)
Set the Timestamp element

Specified by:
setTimestampElement in interface SupportingTokenPolicyValidator

setMessage

public void setMessage(Message msg)

setResults

public void setResults(List<org.apache.ws.security.WSSecurityEngineResult> results)

setSignedResults

public void setSignedResults(List<org.apache.ws.security.WSSecurityEngineResult> signedResults)

setEncryptedResults

public void setEncryptedResults(List<org.apache.ws.security.WSSecurityEngineResult> encryptedResults)

setSigned

public void setSigned(boolean signed)

setEncrypted

public void setEncrypted(boolean encrypted)

setDerived

public void setDerived(boolean derived)

setEndorsed

public void setEndorsed(boolean endorsed)

processUsernameTokens

protected boolean processUsernameTokens()
Process UsernameTokens.


processSAMLTokens

protected boolean processSAMLTokens()
Process SAML Tokens. Only signed results are supported.


processKerberosTokens

protected boolean processKerberosTokens()
Process Kerberos Tokens.


processX509Tokens

protected boolean processX509Tokens()
Process X509 Tokens.


processKeyValueTokens

protected boolean processKeyValueTokens()
Process KeyValue Tokens.


processSCTokens

protected boolean processSCTokens()
Process Security Context Tokens.


setUtResults

public void setUtResults(List<org.apache.ws.security.WSSecurityEngineResult> utResults)

setValidateUsernameToken

public void setValidateUsernameToken(boolean validateUsernameToken)

setTimestamp

public void setTimestamp(Element timestamp)

setSignedElements

public void setSignedElements(SignedEncryptedElements signedElements)

setEncryptedElements

public void setEncryptedElements(SignedEncryptedElements encryptedElements)

setSignedParts

public void setSignedParts(SignedEncryptedParts signedParts)

setEncryptedParts

public void setEncryptedParts(SignedEncryptedParts encryptedParts)

Apache CXF API

Apache CXF