Package org.globus.myproxy
Class Params
- java.lang.Object
-
- org.globus.myproxy.Params
-
- All Implemented Interfaces:
MyProxyConstants
- Direct Known Subclasses:
ChangePasswordParams,DestroyParams,GetParams,GetTrustrootsParams,InfoParams,InitParams
public abstract class Params extends Object implements MyProxyConstants
A generic class for representing basic parameters needed for all MyProxy operations.
-
-
Field Summary
Fields Modifier and Type Field Description protected intlifetimeDefaults to DEFAULT_LIFETIME (12 hours).protected Stringpassphraseprotected Stringusername-
Fields inherited from interface org.globus.myproxy.MyProxyConstants
COMMAND, CRED_DESC, CRED_NAME, CRED_RETRIEVER_TRUSTED, CRLF, DEFAULT_LIFETIME, LIFETIME, MIN_PASSWORD_LENGTH, MYPROXY_PROTOCOL_VERSION, NEW_PHRASE, PASSPHRASE, RENEWER, RETRIEVER, TRUSTROOTS, USERNAME, VERSION, VOMSES, VONAME
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadd(StringBuffer buf, String prefix, String value)protected voidcheckPassphrase(String passphrase)intgetLifetime()StringgetPassphrase()StringgetUserName()StringmakeRequest()protected StringmakeRequest(boolean includePassword)Serializes the parameters into a MyProxy request.protected voidsetCommand(int command)voidsetLifetime(int seconds)voidsetPassphrase(String passphrase)voidsetUserName(String username)StringtoString()
-
-
-
Method Detail
-
setCommand
protected void setCommand(int command)
-
setUserName
public void setUserName(String username)
-
getUserName
public String getUserName()
-
setPassphrase
public void setPassphrase(String passphrase)
-
getPassphrase
public String getPassphrase()
-
setLifetime
public void setLifetime(int seconds)
-
getLifetime
public int getLifetime()
-
checkPassphrase
protected void checkPassphrase(String passphrase)
-
makeRequest
public String makeRequest()
-
makeRequest
protected String makeRequest(boolean includePassword)
Serializes the parameters into a MyProxy request. Subclasses should overwrite this function and append the custom parameters to the output of this function.
-
add
protected void add(StringBuffer buf, String prefix, String value)
-
-