org.gridbus.broker.parsers
Class CredentialParser
java.lang.Object
org.gridbus.broker.parsers.CredentialParser
public final class CredentialParser
- extends java.lang.Object
- Author:
- Krishna
|
Method Summary |
void |
parseCredentials(java.lang.String applicationId,
org.w3c.dom.Node credentialNode,
CredentialManager credStore)
Parses the given credential DOM node (w3c node),
and adds the credentials to the given CredentialManager. |
void |
parseCredentials(java.lang.String applicationId,
java.lang.String credentialFilename,
CredentialManager credStore)
Parses the given credential description file (in xml format),
and adds the credentials to the given CredentialManager. |
boolean |
validate(org.w3c.dom.Node credentialNode)
|
boolean |
validate(java.lang.String credentialFilename)
Validates the given credential file with the xcl schema, and returns true if it is valid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CredentialParser
public CredentialParser()
parseCredentials
public void parseCredentials(java.lang.String applicationId,
org.w3c.dom.Node credentialNode,
CredentialManager credStore)
throws java.lang.Exception
- Parses the given credential DOM node (w3c node),
and adds the credentials to the given CredentialManager.
- Parameters:
applicationId - credentialNode - credStore -
- Throws:
java.lang.Exception
parseCredentials
public void parseCredentials(java.lang.String applicationId,
java.lang.String credentialFilename,
CredentialManager credStore)
throws java.lang.Exception
- Parses the given credential description file (in xml format),
and adds the credentials to the given CredentialManager.
- Parameters:
applicationId - credentialFilename - credStore -
- Throws:
java.lang.Exception
validate
public boolean validate(org.w3c.dom.Node credentialNode)
throws java.lang.Exception
- Throws:
java.lang.Exception
validate
public boolean validate(java.lang.String credentialFilename)
throws java.lang.Exception
- Validates the given credential file with the xcl schema, and returns true if it is valid
- Parameters:
credentialFilename -
- Returns:
- true, if the file conforms to the xcl schema
- Throws:
java.lang.Exception