public abstract class AbstractLoadCredentialsStrategy extends java.lang.Object implements LoadCredentialsStrategy, VOMSEnvironmentVariables
LoadCredentialsEventListener
).Modifier and Type | Field and Description |
---|---|
(package private) LoadCredentialsEventListener |
listener
The
LoadCredentialsEventListener that is notified of load
credentials outcome. |
PKCS12_USER_CERT, VOMS_USER_ID, X509_CERT_DIR, X509_USER_CERT, X509_USER_KEY, X509_USER_PROXY, X509_VOMS_DIR
Modifier | Constructor and Description |
---|---|
protected |
AbstractLoadCredentialsStrategy(LoadCredentialsEventListener listener)
Constructor that let client pass in a
LoadCredentialsEventListener . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
fileExistsAndIsReadable(java.lang.String filename)
Convenience method to check if a file exists and is readable
|
protected eu.emi.security.authn.x509.X509Credential |
loadPEMCredential(java.lang.String privateKeyPath,
java.lang.String certificatePath,
eu.emi.security.authn.x509.helpers.PasswordSupplier pf)
Loads a PEM X.509 credential and notifies the registered
LoadCredentialsEventListener of the load operation outcome. |
protected eu.emi.security.authn.x509.X509Credential |
loadPKCS12Credential(java.lang.String pkcs12FilePath,
eu.emi.security.authn.x509.helpers.PasswordSupplier pf)
Loads a PCKS12 X.509 credential and notifies the registered
LoadCredentialsEventListener of the load operation outcome. |
protected eu.emi.security.authn.x509.X509Credential |
loadProxyCredential(java.lang.String proxyPath)
Loads an X.509 proxy credential and notifies the registered
LoadCredentialsEventListener of the load operation outcome. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadCredentials
LoadCredentialsEventListener listener
LoadCredentialsEventListener
that is notified of load
credentials outcome.protected AbstractLoadCredentialsStrategy(LoadCredentialsEventListener listener)
LoadCredentialsEventListener
.listener
- the listener that is notified of load credential events from this
AbstractLoadCredentialsStrategy
.protected boolean fileExistsAndIsReadable(java.lang.String filename)
filename
- the file to be checkedtrue
if the file exists and is readable,
false
otherwiseprotected eu.emi.security.authn.x509.X509Credential loadPEMCredential(java.lang.String privateKeyPath, java.lang.String certificatePath, eu.emi.security.authn.x509.helpers.PasswordSupplier pf)
LoadCredentialsEventListener
of the load operation outcome.privateKeyPath
- the path to the private keycertificatePath
- the path to the certificatepf
- a PasswordSupplier
used to resolve the private key password
when neededX509Credential
, or null
if the
credential couldn't be loadedprotected eu.emi.security.authn.x509.X509Credential loadPKCS12Credential(java.lang.String pkcs12FilePath, eu.emi.security.authn.x509.helpers.PasswordSupplier pf)
LoadCredentialsEventListener
of the load operation outcome.pkcs12FilePath
- the path to the pkcs12 credentialpf
- a PasswordSupplier
used to resolve the private key passwordX509Credential
, or null
if the
credential couldn't be loadedprotected eu.emi.security.authn.x509.X509Credential loadProxyCredential(java.lang.String proxyPath)
LoadCredentialsEventListener
of the load operation outcome.proxyPath
- the path to the proxy credentialX509Credential
, or null
if the
credential couldn't be loaded