|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.uva.vlet.util.cog.GridProxy
public class GridProxy
Simple Grid Proxy Util class. Provides some conveniant methods in handling grid proxies.
Field Summary | |
---|---|
boolean |
valid
|
Constructor Summary | |
---|---|
GridProxy(GlobusCredential cred)
|
Method Summary | |
---|---|
static void |
addGridProxyListener(GridProxyListener listener)
|
boolean |
checkGridProxy()
|
boolean |
createWithPassword(java.lang.String string)
|
static void |
Debug(java.lang.String str)
|
void |
Destroy()
|
java.lang.String |
getCACertificateLocations()
Return path(s) to certificate locations |
static GridProxy |
getDefault()
Returns static GridProxy object |
int |
getDefaultLifeTime()
|
GlobusCredential |
getGlobusCredential()
Retreives current GLobusCrendentail. |
static org.ietf.jgss.GSSCredential |
getHostCredential()
|
java.lang.String |
getProxyAsString()
Load proxy and return it as String uses ResourceLoader.DEFAULT_CHARSET (must match setGlobusCredential(String)) |
java.lang.String |
getProxyFilename()
|
java.lang.String |
getSubject()
|
long |
getTimeLeft()
|
long |
getTimeLeftHours()
|
long |
getTimeLeftMinutes()
|
long |
getTimeLeftSeconds()
|
java.lang.String |
getTimeLeftString()
|
java.lang.String |
getUserCertFilename()
|
java.lang.String |
getUserCertificateLocation()
Returns parent directory of Certificate Location |
java.lang.String |
getUserKeyFilename()
|
boolean |
isValid()
|
static GlobusCredential |
loadGlobusCredentialsFrom(java.lang.String path)
|
protected void |
loadProxy()
(re)load the proxy and it's configuration |
static void |
reloadProxy()
Triggers reloading of current proxy and it's settings |
static void |
removeGridProxyListener(GridProxyListener listener)
|
boolean |
save()
Save current proxy. |
boolean |
saveTo(java.lang.String path)
Save to local path, does not update ProxyFilename in Globus properties |
static void |
setDefaultGlobusCredential(GlobusCredential cred)
|
void |
setGlobusCredential(java.lang.String proxyStr)
|
static void |
setHostCredential(org.ietf.jgss.GSSCredential cred)
|
boolean |
setProxyLifetime(int time)
Sets time of proxy filename |
boolean |
setProxyLocation(java.lang.String path)
Sets path of proxy filename (Does not update globus cog properties). |
boolean |
setUserCertificateLocation(java.lang.String dir)
Sets parent directory of Certificate (usercert.pem+userkey.pem) Location |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean valid
Constructor Detail |
---|
public GridProxy(GlobusCredential cred)
Method Detail |
---|
protected void loadProxy() throws VlException
VlException
public static GlobusCredential loadGlobusCredentialsFrom(java.lang.String path) throws VlException
VlException
public static void setDefaultGlobusCredential(GlobusCredential cred)
public void setGlobusCredential(java.lang.String proxyStr) throws VlException
VlException
public boolean checkGridProxy()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean createWithPassword(java.lang.String string) throws VlException
VlException
public java.lang.String getProxyFilename()
public java.lang.String getCACertificateLocations()
public boolean save() throws VlException
VlException
public boolean saveTo(java.lang.String path) throws VlException
VlException
public boolean isValid()
public GlobusCredential getGlobusCredential()
public static void addGridProxyListener(GridProxyListener listener)
public static void removeGridProxyListener(GridProxyListener listener)
public static GridProxy getDefault()
public static void Debug(java.lang.String str)
public static void reloadProxy() throws VlException
VlException
public java.lang.String getUserCertFilename()
public int getDefaultLifeTime()
public java.lang.String getUserKeyFilename()
public java.lang.String getUserCertificateLocation()
public long getTimeLeft()
public long getTimeLeftHours()
public long getTimeLeftMinutes()
public long getTimeLeftSeconds()
public java.lang.String getTimeLeftString()
public void Destroy()
public static void setHostCredential(org.ietf.jgss.GSSCredential cred)
public static org.ietf.jgss.GSSCredential getHostCredential()
public java.lang.String getSubject()
public boolean setUserCertificateLocation(java.lang.String dir)
public boolean setProxyLocation(java.lang.String path)
public boolean setProxyLifetime(int time)
public java.lang.String getProxyAsString() throws VlException
VlException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |