Class MyProxyCLI
java.lang.Object
org.globus.myproxy.MyProxyCLI
MyProxy Command Line Client
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringstatic final intprivate booleanprivate static final Stringprivate booleanprivate static final Stringprivate static final Stringprivate Stringprivate static final Stringstatic final intprivate static final Stringstatic final intprivate intstatic final intprivate static final Stringprivate static final Stringstatic final intprivate booleanprivate static final Stringprivate Stringprivate Stringprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidbootstrapIfNeeded(MyProxy myProxy) private static GSSCredentialcreateNewProxy(String userCertFile, String userKeyFile, int lifetime, boolean stdin) private static voidprotected voiddoChangePassword(String[] args, int start) protected voidprotected voidprotected voiddoGetTrustroots(String[] args, int start, boolean anonymous) protected voidprotected voidprotected voiddoPutOrStore(String[] args, int start, boolean storeKey) protected voidprivate static voidprivate voidexit()private voidprivate static GSSCredentialprivate MyProxyprivate Stringprivate booleanisVOMS_USERCONFComment(String line) static voidprotected voidparseCmdLine(String[] args) private ArrayListprivate void
-
Field Details
-
MYPROXY_SERVER_PORT
public static final int MYPROXY_SERVER_PORT- See Also:
-
PORTAL_LIFETIME_HOURS
public static final int PORTAL_LIFETIME_HOURS- See Also:
-
CRED_LIFETIME_HOURS
public static final int CRED_LIFETIME_HOURS- See Also:
-
MATCH_CN_ONLY
public static final int MATCH_CN_ONLY- See Also:
-
REGULAR_EXP
public static final int REGULAR_EXP- See Also:
-
commonOptions
- See Also:
-
message
- See Also:
-
destroyMessage
- See Also:
-
pwdMessage
- See Also:
-
infoMessage
- See Also:
-
getMessage
- See Also:
-
putMessage
- See Also:
-
storeMessage
- See Also:
-
getTrustrootsMessage
- See Also:
-
port
private int port -
hostname
-
username
-
subjectDN
-
debug
private boolean debug -
dnAsUsername
private boolean dnAsUsername -
stdin
private boolean stdin -
wantTrustroots
private boolean wantTrustroots
-
-
Constructor Details
-
MyProxyCLI
public MyProxyCLI()
-
-
Method Details
-
parseCmdLine
-
getUsername
-
verifyCommonCmdLine
private void verifyCommonCmdLine() -
getMyProxy
-
doInfo
-
doDestroy
-
doChangePassword
-
isVOMS_USERCONFComment
-
readVOMS_USERCONF
-
doGet
-
doPut
-
doStore
-
doPutOrStore
-
doGetTrustroots
-
bootstrapIfNeeded
-
exit
private void exit() -
exit
-
error
-
displaySyntax
private static void displaySyntax() -
main
-
getDefaultCredential
-
createNewProxy
private static GSSCredential createNewProxy(String userCertFile, String userKeyFile, int lifetime, boolean stdin)
-