uk.org.ogsadai.client.toolkit.wsrf
Class MessageLevelSecurityProperty

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

public final class MessageLevelSecurityProperty
extends SecurityProperty

Encapsulates message level security settings of a Data Service. Can be passed to the configureStub method of a WSRFDataService.

Author:
The OGSA-DAI Project Team

Field Summary
 
Fields inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
SECURITY, TIMEOUT
 
Constructor Summary
MessageLevelSecurityProperty()
          Constructor.
 
Method Summary
 void configureStub(Stub stub)
           
 Authentication getAuthentication()
          Gets the authentication security mode.
 Authorization getAuthorization()
          Gets the authorization security mode.
 org.ietf.jgss.GSSCredential getCredential()
          Gets the security credential.
 Delegation getDelegation()
          Gets the delegation security mode.
 void setAuthentication(Authentication authenticationMode)
          Sets the authenication security mode.
 void setAuthorization(Authorization authorizationMode)
          Sets the authorization security mode.
 void setCredential(org.ietf.jgss.GSSCredential credential)
          Sets the security credential.
 void setDelegation(Delegation delegationMode)
          Sets the delegation security mode.
 java.lang.String toString()
          Returns a brief description of the message level security settings.
 
Methods inherited from class uk.org.ogsadai.client.toolkit.ConnectionProperty
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageLevelSecurityProperty

public MessageLevelSecurityProperty()
Constructor. Default security settings are:

Method Detail

setAuthentication

public void setAuthentication(Authentication authenticationMode)
Sets the authenication security mode.

Parameters:
authenticationMode - authentication mode

getAuthentication

public Authentication getAuthentication()
Gets the authentication security mode.

Returns:
athentication security mode

setDelegation

public void setDelegation(Delegation delegationMode)
Sets the delegation security mode.

Parameters:
delegationMode - delegation security mode

getDelegation

public Delegation getDelegation()
Gets the delegation security mode.

Returns:
delegation security mode

setAuthorization

public void setAuthorization(Authorization authorizationMode)
Sets the authorization security mode.

Parameters:
authorizationMode - authorization security mode

getAuthorization

public Authorization getAuthorization()
Gets the authorization security mode.

Returns:
the authorization security mode

setCredential

public void setCredential(org.ietf.jgss.GSSCredential credential)
Sets the security credential. The default security credential is the user's installed Globus credential.

Parameters:
credential - security credential to use

getCredential

public org.ietf.jgss.GSSCredential getCredential()
Gets the security credential. The default security credential is the user's installed Globus credential.

Returns:
the security credential

toString

public java.lang.String toString()
Returns a brief description of the message level security settings. The exact details of this are unspecified and subject to change but the following may be regarded as typical:
"[MessageLevelSecurityProperty: authentication=SECURE_CONVERSATION_PRIVACY delegation=LIMITED authorization=NONE id=/C=UK/O=eScience/OU=Edinburgh/L=NeSC/CN=joe bloggs ]"

Overrides:
toString in class java.lang.Object
Returns:
brief description of the security settings

configureStub

public void configureStub(Stub stub)
Specified by:
configureStub in class ConnectionProperty