|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwes.CredentialManager
public class CredentialManager
Credential manager for secured activities.
| Field Summary | |
|---|---|
static int |
MODE_DEFAULT_PROXY_FILE
Use the default Globus credential. |
static int |
MODE_PROXY_FILE
Use a secific proxy file. |
static int |
MODE_USER_CREDENTIAL
Use a specific credential. |
| Constructor Summary | |
|---|---|
CredentialManager()
Create credential manager which uses default Globus Toolkit credential as defined in cog.properties (property X509_USER_PROXY). |
|
CredentialManager(File proxyFile)
Create credential manager which uses specific proxy File. |
|
CredentialManager(GSSCredential credential)
Create credential manager which uses specific GSSCredential. |
|
CredentialManager(String userIdCredential)
Create credential manager which uses specific userID|credential string. |
|
| Method Summary | |
|---|---|
static String |
extractCredential(String userIdCredential)
Extract a credential from a userIdCredential. |
static String |
extractUserId(String userIdCredential)
Get userID from userIdCredential String. |
GSSCredential |
getCredential()
|
String |
getDN()
|
String |
getFilteredCN()
|
static GSSCredential |
getGSSCredential(String credentialString)
Convert a credential String to a GSSCredential. |
void |
setCredential(GSSCredential credential)
|
void |
setCredential(String credentialString)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MODE_DEFAULT_PROXY_FILE
public static final int MODE_PROXY_FILE
public static final int MODE_USER_CREDENTIAL
| Constructor Detail |
|---|
public CredentialManager()
throws GSSException,
IOException,
LoggingException
GSSException
IOException
LoggingException
public CredentialManager(File proxyFile)
throws GSSException,
IOException,
LoggingException
proxyFile -
GSSException
IOException
LoggingException
public CredentialManager(GSSCredential credential)
throws LoggingException,
GSSException
credential -
LoggingException
GSSException
public CredentialManager(String userIdCredential)
throws GSSException,
LoggingException
userIdCredential -
GSSException
LoggingException| Method Detail |
|---|
public GSSCredential getCredential()
throws GSSException,
IOException
GSSException
IOException
public void setCredential(String credentialString)
throws GSSException,
LoggingException
GSSException
LoggingException
public void setCredential(GSSCredential credential)
throws GSSException,
LoggingException
GSSException
LoggingException
public String getDN()
throws GSSException
GSSException
public String getFilteredCN()
throws GSSException
GSSExceptionpublic static String extractCredential(String userIdCredential)
userIdCredential - The format is "userID|credentialString".
public static String extractUserId(String userIdCredential)
throws LoggingException,
WorkflowSecurityException
userIdCredential - The format is "userID|credentialString".
LoggingException
WorkflowSecurityException
public static GSSCredential getGSSCredential(String credentialString)
throws GSSException
credentialString -
GSSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||