org.italiangrid.voms.credential.impl
public class DefaultLoadCredentialsStrategy extends AbstractLoadCredentialsStrategy
X509_USER_CERT
and X509_USER_KEY
environment variables are set, their values are used to load the user
credentialsX509_USER_CERT
and X509_USER_KEY
system properties are set, their values are used to load the user
credentialsPKCS12_USER_CERT
environment variable is set,
its value is used to load the user credentials.PKCS12_USER_CERT
system property is set, its
value is used to load the user credentials..globus
directory in the user's home is
searched for a PEM certificate (in the usercert.pem
and
userkey.pem
files).usercert.p12
file).Modifier and Type | Field and Description |
---|---|
static String |
HOME_PROPERTY |
static String |
TMPDIR_PATH |
static String |
TMPDIR_PROPERTY |
PKCS12_USER_CERT, VOMS_USER_ID, X509_CERT_DIR, X509_USER_CERT, X509_USER_KEY, X509_USER_PROXY, X509_VOMS_DIR
Constructor and Description |
---|
DefaultLoadCredentialsStrategy() |
DefaultLoadCredentialsStrategy(LoadCredentialsEventListener listener) |
DefaultLoadCredentialsStrategy(String homeFolder) |
DefaultLoadCredentialsStrategy(String homeFolder,
String tempDir,
LoadCredentialsEventListener listener) |
Modifier and Type | Method and Description |
---|---|
String |
getFromEnvOrSystemProperty(String propName)
Looks for the value of a given property in the environment or in the system
properties
|
eu.emi.security.authn.x509.X509Credential |
loadCredentials(org.bouncycastle.openssl.PasswordFinder pf)
Loads a user credential
|
protected eu.emi.security.authn.x509.X509Credential |
loadPEMCredentialFromEnv(org.bouncycastle.openssl.PasswordFinder pf) |
protected eu.emi.security.authn.x509.X509Credential |
loadPEMCredentialsFromGlobusDir(org.bouncycastle.openssl.PasswordFinder pf) |
protected eu.emi.security.authn.x509.X509Credential |
loadPKCS12CredentialFromEnv(org.bouncycastle.openssl.PasswordFinder pf) |
protected eu.emi.security.authn.x509.X509Credential |
loadPKCS12CredentialsFromGlobusDir(org.bouncycastle.openssl.PasswordFinder pf) |
protected eu.emi.security.authn.x509.X509Credential |
loadProxyFromEnv() |
protected eu.emi.security.authn.x509.X509Credential |
loadProxyFromUID() |
fileExistsAndIsReadable, loadPEMCredential, loadPKCS12Credential, loadProxyCredential
public static final String HOME_PROPERTY
public static final String TMPDIR_PROPERTY
public static final String TMPDIR_PATH
public DefaultLoadCredentialsStrategy(String homeFolder, String tempDir, LoadCredentialsEventListener listener)
public DefaultLoadCredentialsStrategy(String homeFolder)
public DefaultLoadCredentialsStrategy()
public DefaultLoadCredentialsStrategy(LoadCredentialsEventListener listener)
public String getFromEnvOrSystemProperty(String propName)
propName
- the property that will be looked forpublic eu.emi.security.authn.x509.X509Credential loadCredentials(org.bouncycastle.openssl.PasswordFinder pf)
LoadCredentialsStrategy
pf
- the password finder used to potentially decrypt the credential
encrypted private key.X509Credential
, or null
if no credential
was foundprotected eu.emi.security.authn.x509.X509Credential loadProxyFromUID()
protected eu.emi.security.authn.x509.X509Credential loadProxyFromEnv()
protected eu.emi.security.authn.x509.X509Credential loadPEMCredentialFromEnv(org.bouncycastle.openssl.PasswordFinder pf)
protected eu.emi.security.authn.x509.X509Credential loadPKCS12CredentialFromEnv(org.bouncycastle.openssl.PasswordFinder pf)
protected eu.emi.security.authn.x509.X509Credential loadPKCS12CredentialsFromGlobusDir(org.bouncycastle.openssl.PasswordFinder pf)
protected eu.emi.security.authn.x509.X509Credential loadPEMCredentialsFromGlobusDir(org.bouncycastle.openssl.PasswordFinder pf)
Copyright © 2014. All rights reserved.