|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.italiangrid.voms.credential.impl.AbstractLoadCredentialsStrategy
public abstract class AbstractLoadCredentialsStrategy
Base class for load credentials strategy providing utility classes for loading
credentials from the filesystem and notifying the results of load operations
to interested listeners (via LoadCredentialsEventListener
).
Field Summary |
---|
Fields inherited from interface org.italiangrid.voms.credential.VOMSEnvironmentVariables |
---|
PKCS12_USER_CERT, VOMS_USER_ID, X509_CERT_DIR, X509_USER_CERT, X509_USER_KEY, X509_USER_PROXY, X509_VOMS_DIR |
Constructor Summary | |
---|---|
protected |
AbstractLoadCredentialsStrategy(LoadCredentialsEventListener listener)
Constructor that let client pass in a LoadCredentialsEventListener . |
Method Summary | |
---|---|
protected boolean |
fileExistsAndIsReadable(String filename)
Convenience method to check if a file exists and is readable |
protected eu.emi.security.authn.x509.X509Credential |
loadPEMCredential(String privateKeyPath,
String certificatePath,
org.bouncycastle.openssl.PasswordFinder 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(String pkcs12FilePath,
org.bouncycastle.openssl.PasswordFinder 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(String proxyPath)
Loads an X.509 proxy credential and notifies the registered LoadCredentialsEventListener of
the load operation outcome. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.italiangrid.voms.credential.LoadCredentialsStrategy |
---|
loadCredentials |
Constructor Detail |
---|
protected AbstractLoadCredentialsStrategy(LoadCredentialsEventListener listener)
LoadCredentialsEventListener
.
listener
- the listener that is notified of load credential events from this AbstractLoadCredentialsStrategy
.Method Detail |
---|
protected boolean fileExistsAndIsReadable(String filename)
filename
- the file to be checked
true
if the file exists and is readable, false
otherwiseprotected eu.emi.security.authn.x509.X509Credential loadPEMCredential(String privateKeyPath, String certificatePath, org.bouncycastle.openssl.PasswordFinder pf)
LoadCredentialsEventListener
of
the load operation outcome.
privateKeyPath
- the path to the private keycertificatePath
- the path to the certificatepf
- a PasswordFinder
used to resolve the private key password when needed
X509Credential
, or null
if the credential couldn't be loadedprotected eu.emi.security.authn.x509.X509Credential loadPKCS12Credential(String pkcs12FilePath, org.bouncycastle.openssl.PasswordFinder pf)
LoadCredentialsEventListener
of
the load operation outcome.
pkcs12FilePath
- the path to the pkcs12 credentialpf
- a PasswordFinder
used to resolve the private key password
X509Credential
, or null
if the credential couldn't be loadedprotected eu.emi.security.authn.x509.X509Credential loadProxyCredential(String proxyPath)
LoadCredentialsEventListener
of
the load operation outcome.
proxyPath
- the path to the proxy credential
X509Credential
, or null
if the credential couldn't be loaded
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |