org.objectweb.proactive.ext.security
Class ProActiveSecurityDescriptorHandler

java.lang.Object
  extended by org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
      extended by org.objectweb.proactive.ext.security.ProActiveSecurityDescriptorHandler
All Implemented Interfaces:
UnmarshallerHandler, XMLHandler

public class ProActiveSecurityDescriptorHandler
extends AbstractUnmarshallerDecorator

Author:
acontes To change the template for this generated type comment go to Window>Preferences>Java>Code Generation>Code and Comments

Field Summary
protected  java.lang.String APPLICATION_NAME_TAG
           
protected  java.security.cert.X509Certificate applicationCertificate
           
protected  java.lang.String applicationCertificatePath
           
protected  java.lang.String applicationName
           
protected  java.lang.String applicationPrivateKeyPath
           
protected  java.lang.String CERTIFICATE_TAG
           
protected  java.lang.String ENTITY_FROM_TAG
           
protected  java.lang.String ENTITY_TAG
           
protected  java.lang.String ENTITY_TO_TAG
           
protected  java.lang.String PKCS12_CERTIFICATE
           
protected  java.lang.String pkcs12Keystore
           
protected  java.util.ArrayList<PolicyRule> policyRules
           
protected  PolicyServer policyServer
           
protected  java.lang.String PRIVATE_KEY_TAG
           
protected static java.lang.String PROACTIVE_SECURITY_TAG
           
protected  java.lang.String RULE_AOCREATION_AUTHORIZED
           
protected  java.lang.String RULE_COMMUNICATION_AOCREATION_TAG
           
protected  java.lang.String RULE_COMMUNICATION_ATTRIBUTES_TAG
           
protected  java.lang.String RULE_COMMUNICATION_FROM_TAG
           
protected  java.lang.String RULE_COMMUNICATION_MIGRATION_TAG
           
protected  java.lang.String RULE_COMMUNICATION_TAG
           
protected  java.lang.String RULE_COMMUNICATION_TO_TAG
           
protected  java.lang.String RULE_MIGRATION_AUTHORIZED
           
protected  java.lang.String RULE_MIGRATION_DENIED
           
protected  java.lang.String RULE_TAG
           
protected  java.lang.String RULES_TAG
           
protected  java.lang.String TRUSTED_CERTIFICATION_AUTHORITY_TAG
           
 
Constructor Summary
ProActiveSecurityDescriptorHandler()
           
 
Method Summary
static PolicyServer createPolicyServer(java.lang.String xmlDescriptorUrl)
          Creates ProActiveDescriptor object from XML Descriptor
 java.lang.Object getResultObject()
          Returns the object resulting of the processing of the SAX events.
static void main(java.lang.String[] args)
           
protected  void notifyEndActiveHandler(java.lang.String name, UnmarshallerHandler activeHandler)
           
 void startContextElement(java.lang.String name, Attributes attributes)
          Receives notification that the XML element of given name and attributes has been read in the XML being deserialized.
 
Methods inherited from class org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
addHandler, checkActiveHandler, checkNonEmpty, endElement, endPrefixMapping, getHandler, readValue, startElement, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

policyServer

protected PolicyServer policyServer

applicationCertificate

protected java.security.cert.X509Certificate applicationCertificate

pkcs12Keystore

protected java.lang.String pkcs12Keystore

applicationName

protected java.lang.String applicationName

applicationPrivateKeyPath

protected java.lang.String applicationPrivateKeyPath

applicationCertificatePath

protected java.lang.String applicationCertificatePath

policyRules

protected java.util.ArrayList<PolicyRule> policyRules

PROACTIVE_SECURITY_TAG

protected static java.lang.String PROACTIVE_SECURITY_TAG

RULE_TAG

protected java.lang.String RULE_TAG

ENTITY_TAG

protected java.lang.String ENTITY_TAG

RULES_TAG

protected java.lang.String RULES_TAG

PRIVATE_KEY_TAG

protected java.lang.String PRIVATE_KEY_TAG

CERTIFICATE_TAG

protected java.lang.String CERTIFICATE_TAG

TRUSTED_CERTIFICATION_AUTHORITY_TAG

protected java.lang.String TRUSTED_CERTIFICATION_AUTHORITY_TAG

ENTITY_FROM_TAG

protected java.lang.String ENTITY_FROM_TAG

ENTITY_TO_TAG

protected java.lang.String ENTITY_TO_TAG

RULE_COMMUNICATION_TAG

protected java.lang.String RULE_COMMUNICATION_TAG

RULE_COMMUNICATION_TO_TAG

protected java.lang.String RULE_COMMUNICATION_TO_TAG

RULE_COMMUNICATION_FROM_TAG

protected java.lang.String RULE_COMMUNICATION_FROM_TAG

RULE_COMMUNICATION_MIGRATION_TAG

protected java.lang.String RULE_COMMUNICATION_MIGRATION_TAG

RULE_COMMUNICATION_AOCREATION_TAG

protected java.lang.String RULE_COMMUNICATION_AOCREATION_TAG

RULE_COMMUNICATION_ATTRIBUTES_TAG

protected java.lang.String RULE_COMMUNICATION_ATTRIBUTES_TAG

RULE_MIGRATION_AUTHORIZED

protected java.lang.String RULE_MIGRATION_AUTHORIZED

RULE_MIGRATION_DENIED

protected java.lang.String RULE_MIGRATION_DENIED

RULE_AOCREATION_AUTHORIZED

protected java.lang.String RULE_AOCREATION_AUTHORIZED

APPLICATION_NAME_TAG

protected java.lang.String APPLICATION_NAME_TAG

PKCS12_CERTIFICATE

protected java.lang.String PKCS12_CERTIFICATE
Constructor Detail

ProActiveSecurityDescriptorHandler

public ProActiveSecurityDescriptorHandler()
Method Detail

notifyEndActiveHandler

protected void notifyEndActiveHandler(java.lang.String name,
                                      UnmarshallerHandler activeHandler)
                               throws org.xml.sax.SAXException
Specified by:
notifyEndActiveHandler in class AbstractUnmarshallerDecorator
Throws:
org.xml.sax.SAXException

getResultObject

public java.lang.Object getResultObject()
                                 throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Returns the object resulting of the processing of the SAX events.

Returns:
the object resulting of the processing of the SAX events or null
Throws:
org.xml.sax.SAXException - if the state of the handler does not allow to return any resulting object.

startContextElement

public void startContextElement(java.lang.String name,
                                Attributes attributes)
                         throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Receives notification that the XML element of given name and attributes has been read in the XML being deserialized. This element is the context element of the Object being unmarshalled. This context element is the element that has triggered the use of this handler.

Parameters:
name - the name of the element just opened
attributes - the attributes of this element
Throws:
org.xml.sax.SAXException - if an exception occur during processing

createPolicyServer

public static PolicyServer createPolicyServer(java.lang.String xmlDescriptorUrl)
                                       throws InvalidPolicyFile
Creates ProActiveDescriptor object from XML Descriptor

Parameters:
xmlDescriptorUrl - the URL of XML Descriptor
Throws:
InvalidPolicyFile

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException,
                        org.xml.sax.SAXException
Throws:
java.io.IOException
org.xml.sax.SAXException


Copyright 2001-2007 INRIA All Rights Reserved.