|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.sdsc.grid.io.GeneralAccount
edu.sdsc.grid.io.RemoteAccount
edu.sdsc.grid.io.srb.SRBAccount
public class SRBAccount
This class extends the RemoteAccount class, adding those values necessary to open a connection to the SRB. This class does not actually connect to a filesystem. It only hold user connection information. Setting or getting this information only refers to the contents of the object.
| Field Summary | |
|---|---|
protected java.lang.String |
certificateAuthority
The certificate authority (CA) list. |
protected java.lang.String |
clientMcatZone
The client mcat zone. |
protected java.lang.String |
defaultStorageResource
The default storage resource. |
protected java.lang.String |
domainName
The mdas domain home of the user. |
static int |
ENCRYPT1
Encrypted text password. |
protected java.lang.String |
execFile
The exec file. |
static int |
GSI_AUTH
GSI authentication protocol |
static int |
GSI_DELEGATE
GSI delegated authentication protocol |
protected java.lang.Object |
gssCredential
Stores the GSSCredential. |
protected int |
options
The srb options. |
static int |
PASSWD_AUTH
Plain text password. |
protected java.lang.String |
proxyDomainName
The mdas domain home of the user. |
protected java.lang.String |
proxyMcatZone
The proxy mcat zone. |
protected java.lang.String |
proxyUserName
The authorizing user name. |
static java.lang.String |
SRB_VERSION_1_1_8
SRB version 1.1.8. |
static java.lang.String |
SRB_VERSION_2
All SRB version 2 |
static java.lang.String |
SRB_VERSION_3
SRB version 3.0.0 |
static java.lang.String |
SRB_VERSION_3_0_2
SRB version 3.0.2 to version 3.2 |
static java.lang.String |
SRB_VERSION_3_3
SRB version 3.3 |
static java.lang.String |
SRB_VERSION_3_3_1
SRB version 3.3.1 |
static java.lang.String |
SRB_VERSION_3_4
SRB version 3.4 (same as SRB_VERSION_3_3_1) |
protected static java.lang.String |
version
The srb version. |
| Fields inherited from class edu.sdsc.grid.io.RemoteAccount |
|---|
host, password, port, userName |
| Fields inherited from class edu.sdsc.grid.io.GeneralAccount |
|---|
homeDirectory |
| Constructor Summary | |
|---|---|
SRBAccount()
This constructor uses the default info found in the Mdas files in the user's local home directory. |
|
SRBAccount(java.io.File userInfoDirectory)
Creates an object to hold SRB account information. |
|
SRBAccount(java.io.File mdasEnvFile,
java.io.File mdasAuthFile)
Creates an object to hold SRB account information. |
|
SRBAccount(GeneralFile userInfoDirectory)
Creates an object to hold SRB account information. |
|
SRBAccount(GeneralFile mdasEnvFile,
GeneralFile mdasAuthFile)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String userInfoDirectory)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String host,
int port,
java.lang.Object gssCredential)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String host,
int port,
java.lang.Object gssCredential,
java.lang.String homeDirectory,
java.lang.String defaultStorageResource,
int options)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String mdasDomainName,
java.lang.String defaultStorageResource)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String mdasDomainName,
java.lang.String defaultStorageResource,
java.lang.String mcatZone)
Creates an object to hold SRB account information. |
|
SRBAccount(java.lang.String mdasEnvFile,
java.lang.String mdasAuthFile)
Creates an object to hold SRB account information. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this account object for equality with the given object. |
protected void |
finalize()
Finalizes the object by explicitly letting go of each of its internally held values. |
java.lang.String |
getCertificateAuthority()
Gets the locations of the GSI Certificate Authority (CA). |
java.lang.String |
getDefaultStorageResource()
Gets the default storage resource. |
java.lang.String |
getDomainName()
Gets the domain name used by the client. |
java.lang.String |
getExecFile()
|
java.lang.Object |
getGSSCredential()
If one exists, gets the GSSCredential used to make a GSI authentication. |
java.lang.String |
getMcatZone()
|
int |
getOptions()
Gets the SRB options. |
protected java.lang.String |
getProxyDomainName()
Gets the SRB proxyDomainName. |
java.lang.String |
getProxyMcatZone()
|
protected java.lang.String |
getProxyUserName()
Gets the SRB proxyUserName. |
static java.lang.String |
getVersion()
Gets the SRB version. |
void |
readMdasAuth(GeneralFile mdasAuthFile)
Retrieve the Mdas authorization user password |
void |
setCertificateAuthority(java.lang.String list)
Sets the locations of the GSI Certificate Authority (CA). |
void |
setDefaultStorageResource(java.lang.String defaultStorageResource)
Sets the default storage resource. |
void |
setDomainName(java.lang.String domainName)
Sets the domain name used by the client. |
void |
setExecFile(java.lang.String execFile)
Sets the exec file. |
void |
setGSSCredential(java.lang.Object gssCredential)
Allows a GSSCredential to be used to make a GSI authentication. |
void |
setHomeDirectory(java.lang.String homeDirectory)
Sets the home directory of this RemoteAccount. |
void |
setMcatZone(java.lang.String clientMcatZone)
Sets the client mcat zone. |
void |
setMdasUserInfo(GeneralFile mdasEnvFile)
Reads the Mdas enviroment file, then sets the user info variables. |
void |
setOptions(int options)
Set the type of authentication used, e.g. |
protected void |
setProxyDomainName(java.lang.String proxyDomainName)
Sets the proxy domain name. |
void |
setProxyMcatZone(java.lang.String proxyMcatZone)
Sets the proxy mcat zone. |
protected void |
setProxyUserName(java.lang.String proxyUserName)
Sets the proxy user name. |
void |
setUserInfo(GeneralFile userInfoDirectory)
Reads the Mdas enviroment files, then set the user info. |
static void |
setVersion(java.lang.String srbVersion)
Sets the version. |
java.lang.String |
toString()
Returns a string representation of this file system object. |
| Methods inherited from class edu.sdsc.grid.io.RemoteAccount |
|---|
getHost, getPassword, getPort, getUserName, setHost, setPassword, setPort, setUserName |
| Methods inherited from class edu.sdsc.grid.io.GeneralAccount |
|---|
clone, getHomeDirectory |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int PASSWD_AUTH
public static final int GSI_AUTH
public static final int ENCRYPT1
public static final int GSI_DELEGATE
public static final java.lang.String SRB_VERSION_3_4
public static final java.lang.String SRB_VERSION_3_3_1
public static final java.lang.String SRB_VERSION_3_3
public static final java.lang.String SRB_VERSION_3_0_2
public static final java.lang.String SRB_VERSION_3
public static final java.lang.String SRB_VERSION_2
public static final java.lang.String SRB_VERSION_1_1_8
protected java.lang.String proxyUserName
protected java.lang.String proxyDomainName
protected java.lang.String domainName
protected java.lang.String defaultStorageResource
protected int options
protected java.lang.String proxyMcatZone
protected java.lang.String clientMcatZone
protected java.lang.String execFile
protected java.lang.String certificateAuthority
protected java.lang.Object gssCredential
protected static java.lang.String version
| Constructor Detail |
|---|
public SRBAccount()
throws java.io.FileNotFoundException,
java.io.IOException
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(java.lang.String userInfoDirectory)
throws java.io.FileNotFoundException,
java.io.IOException
userInfoDirectory - the local directory holding the .Mdas files
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(java.io.File userInfoDirectory)
throws java.io.FileNotFoundException,
java.io.IOException
userInfoDirectory - directory holding the .Mdas files
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(GeneralFile userInfoDirectory)
throws java.io.FileNotFoundException,
java.io.IOException
userInfoDirectory - directory holding the .Mdas files
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(java.lang.String mdasEnvFile,
java.lang.String mdasAuthFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasEnvFile - Location of the ".MdasEnv" file.mdasAuthFile - Location of the ".MdasAuth" file.
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(java.io.File mdasEnvFile,
java.io.File mdasAuthFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasEnvFile - Location of the ".MdasEnv" file.mdasAuthFile - Location of the ".MdasAuth" file.
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(GeneralFile mdasEnvFile,
GeneralFile mdasAuthFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasEnvFile - Location of the ".MdasEnv" file.mdasAuthFile - Location of the ".MdasAuth" file.
java.io.FileNotFoundException - if the user info cannot be found.
java.io.IOException - if the user info exists but cannot be opened or
created for any other reason.
public SRBAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String mdasDomainName,
java.lang.String defaultStorageResource)
host - the SRB server domain nameport - the port on the SRB serveruserName - the user namepassword - the passwordhomeDirectory - home directory on the SRBmdasDomainName - the mdas home domaindefaultStorageResource - default storage resource
public SRBAccount(java.lang.String host,
int port,
java.lang.String userName,
java.lang.String password,
java.lang.String homeDirectory,
java.lang.String mdasDomainName,
java.lang.String defaultStorageResource,
java.lang.String mcatZone)
host - the SRB server domain nameport - the port on the SRB serveruserName - the user namepassword - the passwordhomeDirectory - home directory on the SRBmdasDomainName - the mdas home domaindefaultStorageResource - default storage resourcemcatZone - mcat zone
public SRBAccount(java.lang.String host,
int port,
java.lang.Object gssCredential)
host - the SRB server domain nameport - the port on the SRB servergssCredential - the org.ietf.jgss.GSSCredential object
public SRBAccount(java.lang.String host,
int port,
java.lang.Object gssCredential,
java.lang.String homeDirectory,
java.lang.String defaultStorageResource,
int options)
host - the SRB server domain nameport - the port on the SRB servergssCredential - the org.ietf.jgss.GSSCredential objecthomeDirectory - home directory on the SRBdefaultStorageResource - default storage resourceoptions - authentication protocol, e.g GSI_AUTH| Method Detail |
|---|
protected void finalize()
finalize in class RemoteAccountpublic void setHomeDirectory(java.lang.String homeDirectory)
setHomeDirectory in class GeneralAccountjava.lang.NullPointerException - if homeDirectory is null.protected void setProxyUserName(java.lang.String proxyUserName)
java.lang.NullPointerException - if proxyUserName is null.protected void setProxyDomainName(java.lang.String proxyDomainName)
java.lang.NullPointerException - if proxyDomainName is null.public void setDomainName(java.lang.String domainName)
java.lang.NullPointerException - if domainName is null.public void setDefaultStorageResource(java.lang.String defaultStorageResource)
java.lang.NullPointerException - if defaultStorageResource is null.public void setOptions(int options)
public static void setVersion(java.lang.String srbVersion)
java.lang.NullPointerException - if version is null.public void setProxyMcatZone(java.lang.String proxyMcatZone)
public void setMcatZone(java.lang.String clientMcatZone)
public void setExecFile(java.lang.String execFile)
public void setCertificateAuthority(java.lang.String list)
public void setGSSCredential(java.lang.Object gssCredential)
protected java.lang.String getProxyUserName()
protected java.lang.String getProxyDomainName()
public java.lang.String getDomainName()
public java.lang.String getDefaultStorageResource()
public int getOptions()
public static java.lang.String getVersion()
public java.lang.String getProxyMcatZone()
public java.lang.String getMcatZone()
public java.lang.String getExecFile()
public java.lang.String getCertificateAuthority()
public java.lang.Object getGSSCredential()
public boolean equals(java.lang.Object obj)
true if and only if the argument is not
null and both are account objects with equivalent connection
parameters.
equals in class GeneralAccountobj - The object to be compared with this abstract pathname
true if and only if the objects are the same;
false otherwisepublic java.lang.String toString()
toString in class java.lang.Object
public void setUserInfo(GeneralFile userInfoDirectory)
throws java.io.FileNotFoundException,
java.io.IOException
userInfoDirectory - The path to the user info files
java.io.FileNotFoundException
java.io.IOException
public void setMdasUserInfo(GeneralFile mdasEnvFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasEnvFile - The mdas file which stores the user info
java.io.FileNotFoundException
java.io.IOException
public void readMdasAuth(GeneralFile mdasAuthFile)
throws java.io.FileNotFoundException,
java.io.IOException
mdasAuthFile - The file which contains the Mdas authorization
java.io.FileNotFoundException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||