Save This Page
Home » rampart-dist-1.4-src » org.apache » rampart » [javadoc | source]
org.apache.rampart
public class: PolicyBasedResultsValidator [javadoc | source]
java.lang.Object
   org.apache.rampart.PolicyBasedResultsValidator

All Implemented Interfaces:
    PolicyValidatorCallbackHandler

Method from org.apache.rampart.PolicyBasedResultsValidator Summary:
getEncryptedReferences,   getResults,   getSigEncrActions,   handleSupportingTokens,   isSignatureRequired,   isUsernameTokenPresent,   isUsernameTokenPresent,   validate,   validateEncrSig,   validateEncryptedParts,   validateProtectionOrder,   validateRequiredElements,   validateSignedPartsHeaders,   validateSupportingTokens,   verifyTimestamp,   verifyTrust
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.rampart.PolicyBasedResultsValidator Detail:
 protected ArrayList getEncryptedReferences(Vector results) 
 protected ArrayList getResults(Vector results,
    int action) 
 protected ArrayList getSigEncrActions(Vector results) 
 protected  void handleSupportingTokens(Vector results,
    SupportingToken suppTok) throws RampartException 
 protected boolean isSignatureRequired(RampartMessageData rmd) 
 protected boolean isUsernameTokenPresent(ValidatorData data) 
 protected boolean isUsernameTokenPresent(SupportingToken suppTok) 
 public  void validate(ValidatorData data,
    Vector results) throws RampartException 
    {@inheritDoc}
 protected  void validateEncrSig(ValidatorData data,
    Vector encryptedParts,
    Vector signatureParts,
    Vector results) throws RampartException 
 protected  void validateEncryptedParts(ValidatorData data,
    Vector encryptedParts,
    Vector results) throws RampartException 
 protected  void validateProtectionOrder(ValidatorData data,
    Vector results) throws RampartException 
 public  void validateRequiredElements(ValidatorData data) throws RampartException 
 protected  void validateSignedPartsHeaders(ValidatorData data,
    Vector signatureParts,
    Vector results) throws RampartException 
 protected  void validateSupportingTokens(ValidatorData data,
    Vector results) throws RampartException 
 protected boolean verifyTimestamp(Timestamp timestamp,
    RampartMessageData rmd) throws RampartException 
 protected boolean verifyTrust(X509Certificate cert,
    RampartMessageData rmd) throws RampartException 
    Evaluate whether a given certificate should be trusted. Hook to allow subclasses to implement custom validation methods however they see fit.

    Policy used in this implementation: 1. Search the keystore for the transmitted certificate 2. Search the keystore for a connection to the transmitted certificate (that is, search for certificate(s) of the issuer of the transmitted certificate 3. Verify the trust path for those certificates found because the search for the issuer might be fooled by a phony DN (String!)