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
A generic class for representing basic parameters
needed for all MyProxy operations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
Defaults to DEFAULT_LIFETIME (12 hours).protected String
protected String
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(StringBuffer buf, String prefix, String value) protected void
checkPassphrase
(String passphrase) int
protected String
makeRequest
(boolean includePassword) Serializes the parameters into a MyProxy request.protected void
setCommand
(int command) void
setLifetime
(int seconds) void
setPassphrase
(String passphrase) void
setUserName
(String username) toString()
-
Field Details
-
username
-
passphrase
-
lifetime
protected int lifetimeDefaults to DEFAULT_LIFETIME (12 hours).
-
-
Constructor Details
-
Params
public Params(int command) -
Params
-
-
Method Details
-
setCommand
protected void setCommand(int command) -
setUserName
-
getUserName
-
setPassphrase
-
getPassphrase
-
setLifetime
public void setLifetime(int seconds) -
getLifetime
public int getLifetime() -
checkPassphrase
-
makeRequest
-
makeRequest
Serializes the parameters into a MyProxy request. Subclasses should overwrite this function and append the custom parameters to the output of this function. -
add
-
toString
-