uk.org.ogsadai.client.toolkit.security.wsrf
Class SecurityConfigProperty

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.ConnectionProperty
        |
        +--uk.org.ogsadai.client.toolkit.security.SecurityProperty
              |
              +--uk.org.ogsadai.client.toolkit.security.wsrf.SecurityConfigProperty

public class SecurityConfigProperty
extends SecurityProperty

A connection property that can be used to specify a client-side security descriptor to use when communicating with a secure OGSA-DAI WSRF service. The format of the security descriptor is specified by the Globus Toolkit.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String CLIENT_DESCRIPTOR_FILE
          Globus string for client descriptor file property.
private static java.lang.String COPYRIGHT_NOTICE
          Copyright statement
private  java.io.File mSecurityConfigFile
          File that contains the security configuration details
 
Fields inherited from class uk.org.ogsadai.client.toolkit.security.SecurityProperty
SECURITY
 
Fields inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
CONNECTION_PROPERTY_NS
 
Constructor Summary
SecurityConfigProperty(java.io.File securityConfigFile)
          Create a security configuration property associated with the given security configuration file.
 
Method Summary
 void configureCallFactory(SOAPCallFactory factory)
          Configures a SOAPCallFactory to apply this connection property to any subsequent calls that are made.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
Copyright statement

See Also:
Constant Field Values

mSecurityConfigFile

private java.io.File mSecurityConfigFile
File that contains the security configuration details


CLIENT_DESCRIPTOR_FILE

private static final java.lang.String CLIENT_DESCRIPTOR_FILE
Globus string for client descriptor file property. This should always be the same value as org.globus.wsrf.security.Constants.CLIENT_DESCRIPTOR_FILE It is duplicated here to remove any dependency on Globus code.

See Also:
Constant Field Values
Constructor Detail

SecurityConfigProperty

public SecurityConfigProperty(java.io.File securityConfigFile)
Create a security configuration property associated with the given security configuration file. The contents of this file are read whenever a message is sent to the server so if the file contents are changed the new contents will be used for the next message.

No checks are made to see if the file exists or has the correct contents.

Parameters:
securityConfigFile - The security configuration file. See Globus Toolkit documentation for expected contents of the client side security descriptors.
Method Detail

configureCallFactory

public void configureCallFactory(SOAPCallFactory factory)
Description copied from class: ConnectionProperty
Configures a SOAPCallFactory to apply this connection property to any subsequent calls that are made.

Specified by:
configureCallFactory in class ConnectionProperty
Parameters:
factory - factory used for creating SOAP calls that this connection property will be applied to