|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.internet2.middleware.security.CredentialHelper
public class CredentialHelper
Helper class for reading in cryptographic credentials.
| Constructor Summary | |
|---|---|
CredentialHelper()
|
|
| Method Summary | |
|---|---|
static X509TrustManager |
buildNoTrustTrustManager()
|
protected static org.opensaml.xml.security.x509.BasicX509Credential |
getCredentialFromKeystore(KeyStore keystore,
String keyAlias,
String keyPassword)
Gets a credential from the given store. |
protected static org.opensaml.xml.security.x509.BasicX509Credential |
getFileBasedCredentials(String keyFile,
String keyPassword,
String certificateFile)
Reads in the X509 credentials from the filesystem. |
protected static org.opensaml.xml.security.x509.BasicX509Credential |
getKeystoreCredential(String keystorePath,
String keystorePassword,
String keystoreProvider,
String keystoreType,
String keyAlias,
String keyPassword)
Reads in the X509 credentials from a keystore. |
protected static org.opensaml.xml.security.x509.BasicX509Credential |
getPKCS11Credential(String keystoreProvider,
String pkcs11Config,
String keyAlias,
String keyPassword)
Reads in the X509 credentials from a PKCS11 source. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CredentialHelper()
| Method Detail |
|---|
public static X509TrustManager buildNoTrustTrustManager()
protected static org.opensaml.xml.security.x509.BasicX509Credential getFileBasedCredentials(String keyFile,
String keyPassword,
String certificateFile)
throws KeyException,
CertificateException
keyFile - path to the private key filekeyPassword - password for the private key, may be nullcertificateFile - path to the certificate file associated with the private key
KeyException
CertificateException
protected static org.opensaml.xml.security.x509.BasicX509Credential getKeystoreCredential(String keystorePath,
String keystorePassword,
String keystoreProvider,
String keystoreType,
String keyAlias,
String keyPassword)
throws IOException,
GeneralSecurityException
keystorePath - path the keystore filekeystorePassword - keystore passwordkeystoreProvider - keystore providr identifierkeystoreType - keystore typekeyAlias - private key aliaskeyPassword - private key password, may not be null
IOException
GeneralSecurityException
protected static org.opensaml.xml.security.x509.BasicX509Credential getPKCS11Credential(String keystoreProvider,
String pkcs11Config,
String keyAlias,
String keyPassword)
throws IOException,
GeneralSecurityException
keystoreProvider - keystore provider classpkcs11Config - PKCS11 configuration file used by the keystore providerkeyAlias - private key keystore aliaskeyPassword - private key password, may not be null
IOException
GeneralSecurityException
protected static org.opensaml.xml.security.x509.BasicX509Credential getCredentialFromKeystore(KeyStore keystore,
String keyAlias,
String keyPassword)
throws GeneralSecurityException
keystore - keystore from which to extract the credentialskeyAlias - keystore key aliaskeyPassword - private key password
GeneralSecurityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||