org.codehaus.spice.xmlpolicy.builder
Class PolicyBuilder
java.lang.Object
|
+--org.codehaus.spice.xmlpolicy.builder.PolicyBuilder
- public class PolicyBuilder
- extends Object
A Utility class that builds a Policy object from a specified
PolicyMetaData.
- Version:
- $Revision: 1.1 $ $Date: 2003/12/02 09:16:06 $
- Author:
- Peter Donald
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PolicyBuilder
public PolicyBuilder()
buildPolicy
public Policy buildPolicy(PolicyMetaData policy,
PolicyResolver resolver)
throws Exception
- Build a policy for a specified meta data.
- Parameters:
policy
- the policy metadata
- Returns:
- the Policy object
- Throws:
Exception
- if unable to create Policy object
createKeyStore
protected KeyStore createKeyStore(String type,
URL url)
throws Exception
- Create a keystore of specified type and loading from specified url.
- Parameters:
type
- the type of key storeurl
- the location of key store data
- Returns:
- the create and configured keystore
- Throws:
Exception
- if unable to create or load keystore
Copyright © 2002-2003 Codehaus. All Rights Reserved.