Open MJ-Youn opened 5 years ago
You authenticate using one of the authenticate
methods. There are two: one that accepts a GSSCredential
argument and uses a default username (:globus-mapping:
) while the other accepts the username as an argument.
I suspect that the first version (just the GSSCredential
argument) is the one you should use.
The GSSCredential
is the X.509 credential that represents the identity you want to use when authenticating. Normally, this is created by the user with the voms-proxy-init
, arc-proxy
, or similar command and stored as the file /tmp/x509up_u$(id -u)
.
Alternatively, you could create this proxy credential as part of your application. For normal users that (usually) requires entering in a passphrase (robot certificates, however, don't require this). The proxy credential (normally) requires no such passphrase, so this is usually the preferred way to get a credential.
The ExtendedGSSManager
(abstract) class may be used to load the credential as a GSSCredential
object. See gridftp/src/main/java/org/globus/ftp/examples/LocalCredentialHelper.java
for an example on how to do this.
Hi, i use jglobus in my pc.
Error
but i fase this error. I think, because, this error have not authorization info. I don't know to run gridftpclient with authorization. please advice.