org.gridlab.gat.security
Class MyProxyServerCredentialSecurityContext

java.lang.Object
  extended by org.gridlab.gat.security.SecurityContext
      extended by org.gridlab.gat.security.MyProxyServerCredentialSecurityContext
All Implemented Interfaces:
Cloneable

public class MyProxyServerCredentialSecurityContext
extends SecurityContext

This context is used if you have a credential stored in a myproxy server. You need to specify a host, port, username and password to the myproxy server.

Author:
rob

Constructor Summary
MyProxyServerCredentialSecurityContext(String host, int port, String username, String password)
          Creates a MyProxyServerCredentialSecurityContext.
 
Method Summary
 Object clone()
          Returns a clone of this context.
 boolean equals(Object obj)
           
 String getHost()
          Returns the host of the MyProxy server.
 int getPort()
          Gets the port of the MyProxy server.
 int hashCode()
           
 void setHost(String host)
          Sets the host of the MyProxy server.
 void setPort(int port)
          Sets the port of the MyProxy server.
 String toString()
           
 
Methods inherited from class org.gridlab.gat.security.SecurityContext
addNote, containsNoteKey, getDataObject, getNoteValue, getPassword, getUsername, isValidFor, putDataObject, removeDataObject, setPassword, setUsername
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyProxyServerCredentialSecurityContext

public MyProxyServerCredentialSecurityContext(String host,
                                              int port,
                                              String username,
                                              String password)
Creates a MyProxyServerCredentialSecurityContext.

Parameters:
host - the hostname of the myproxy server
port - the port where the myproxy server runs, -1 for the default port
username - the username to use to connect to the myproxy server
password - the password to use to connect to the myproxy server
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: SecurityContext
Returns a clone of this context.

Specified by:
clone in class SecurityContext
Returns:
the clone of this security context
Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)
Specified by:
equals in class SecurityContext

getHost

public String getHost()
Returns the host of the MyProxy server.

Returns:
the host of the MyProxy server

setHost

public void setHost(String host)
Sets the host of the MyProxy server.

Parameters:
host - the new host of the MyProxy server

getPort

public int getPort()
Gets the port of the MyProxy server.

Returns:
the port of the MyProxy server.

setPort

public void setPort(int port)
Sets the port of the MyProxy server.

Parameters:
port - the new port of the MyProxy server

hashCode

public int hashCode()
Specified by:
hashCode in class SecurityContext

toString

public String toString()
Overrides:
toString in class Object