org.apache.ws.sandbox.security.trust
Class TrustEngine

java.lang.Object
  extended byorg.apache.ws.sandbox.security.trust.TrustEngine

public class TrustEngine
extends java.lang.Object

Author:
Ruchith This is used in at the web service end to verfy trust of request Three verifiers are used in verifying trust which represents the three key stpes performed by the STS These three verifier classes and their properties can be specified in the trustEngine.properties file The verifier classes will accept a Property object having the properties from the specified property file The author of the verifier classes can decide how to carryout the verfication when the verify() is called

Constructor Summary
TrustEngine()
          Create a trust engine with the default properties file The default properties file used is trustEngine.properties
TrustEngine(java.lang.String propFileName)
          Create a trust engine with config info in a Properties file
 
Method Summary
 boolean verifyTrust(org.w3c.dom.Document doc)
          Verify trust for a given request
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrustEngine

public TrustEngine(java.lang.String propFileName)
            throws WSTrustException
Create a trust engine with config info in a Properties file

Parameters:
propFileName - Property file name
Throws:
WSTrustException

TrustEngine

public TrustEngine()
            throws WSTrustException
Create a trust engine with the default properties file The default properties file used is trustEngine.properties

Throws:
WSTrustException
Method Detail

verifyTrust

public boolean verifyTrust(org.w3c.dom.Document doc)
                    throws WSTrustException
Verify trust for a given request

Parameters:
doc - The request message
Returns:
If all three verifiers verifies this will return true
Throws:
WSTrustException


Copyright © 2004-2008 Apache Web Services. All Rights Reserved.