public abstract class Params extends Object implements MyProxyConstants
Modifier and Type | Field and Description |
---|---|
protected int |
lifetime
Defaults to DEFAULT_LIFETIME (12 hours).
|
protected String |
passphrase |
protected String |
username |
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 and Description |
---|
Params(int command) |
Params(int command,
String username,
String passphrase) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(StringBuffer buf,
String prefix,
String value) |
protected void |
checkPassphrase(String passphrase) |
int |
getLifetime() |
String |
getPassphrase() |
String |
getUserName() |
String |
makeRequest() |
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) |
String |
toString() |
protected String username
protected String passphrase
protected int lifetime
protected void setCommand(int command)
public void setUserName(String username)
public String getUserName()
public void setPassphrase(String passphrase)
public String getPassphrase()
public void setLifetime(int seconds)
public int getLifetime()
protected void checkPassphrase(String passphrase)
public String makeRequest()
protected String makeRequest(boolean includePassword)
protected void add(StringBuffer buf, String prefix, String value)
Copyright © 2016. All rights reserved.