//if (GridFtpFileSystem.HOME_DIRECTORY.equals(attrName)) {
// return this.homeDirAttribute;
//} else
if (GridFtpFileSystem.CREDENTIAL_LIFETIME.equals(attrName)) {
try {
GSSCredential credential = GridFtpFileSystemConfigBuilder.getInstance().getGSSCredential(this.getFileSystemOptions());
if (credential == null) {
throw new FileSystemException("vfs.provider/get-gsscredential.error");
} else {
return credential.getRemainingLifetime();
}
} catch (GSSException ex) {
throw new FileSystemException("vfs.provider/get-gsscredential-lifetime.error");
}
} else if (GridFtpFileSystem.CREDENTIAL.equals(attrName)) {
GSSCredential credential = GridFtpFileSystemConfigBuilder.getInstance().getGSSCredential(this.getFileSystemOptions());
if (credential == null) {
throw new FileSystemException("vfs.provider/get-gsscredential.error");
} else {
return credential;
}