Package | Description |
---|---|
org.apache.taverna.security.credentialmanager | |
org.apache.taverna.security.credentialmanager.impl |
Modifier and Type | Method and Description |
---|---|
String |
CredentialManager.addKeyPair(Key privateKey,
Certificate[] certs)
Insert a new key entry containing private key and the corresponding
public key certificate chain in the Keystore.
|
String |
CredentialManager.addTrustedCertificate(X509Certificate cert)
Insert a trusted certificate entry in the Truststore with an alias
constructed as:
"trustedcert#
|
String |
CredentialManager.addUsernameAndPasswordForService(UsernamePassword usernamePassword,
URI serviceURI)
Insert a username and password pair for the given service URI in the
Keystore.
|
void |
CredentialManager.changeMasterPassword(String newPassword)
Change the Keystore and the Truststore's master password to the one
provided.
|
boolean |
CredentialManager.confirmMasterPassword(String password)
Checks if Keystore's master password is the same as the one provided.
|
X509Certificate |
DistinguishedNameParser.convertCertificate(Certificate certificate)
Convert the certificate object into an X509Certificate object.
|
void |
CredentialManager.deleteKeyPair(Key privateKey,
Certificate[] certs)
Delete a key pair entry from the Keystore given its private and public
key parts.
|
void |
CredentialManager.deleteKeyPair(String alias)
Delete a key pair entry from the Keystore given its alias.
|
void |
CredentialManager.deleteTrustedCertificate(String alias)
Delete a trusted certificate entry from the Truststore given its alias.
|
void |
CredentialManager.deleteTrustedCertificate(X509Certificate cert)
Delete a trusted certificate entry from the Truststore given the
certificate.
|
void |
CredentialManager.deleteUsernameAndPasswordForService(URI serviceURI)
Delete a username and password pair for the given service URI from the
Keystore.
|
void |
CredentialManager.exportKeyPair(String alias,
Path exportFile,
String pkcs12Password)
Export a key entry containing private key and public key certificate
chain from the Keystore to a PKCS #12 file.
|
ArrayList<String> |
CredentialManager.getAliases(CredentialManager.KeystoreType ksType)
Get all the aliases from the Keystore/Truststore or null if there was
some error while accessing it.
|
Certificate |
CredentialManager.getCertificate(CredentialManager.KeystoreType ksType,
String alias)
Get certificate entry from the Keystore or Truststore.
|
Certificate[] |
CredentialManager.getKeyPairsCertificateChain(String alias)
Get certificate chain for the key pair entry from the Keystore given its
alias.
|
Key |
CredentialManager.getKeyPairsPrivateKey(String alias)
Get the private key part of a key pair entry from the Keystore given its
alias.
|
List<URI> |
CredentialManager.getServiceURIsForAllUsernameAndPasswordPairs()
Get service URIs associated with all username/password pairs currently in
the Keystore.
|
SSLSocketFactory |
CredentialManager.getTavernaSSLSocketFactory()
Get Taverna's SSLSocketFactory backed by Credential Manager's Keystore
and Truststore.
|
UsernamePassword |
CredentialManager.getUsernameAndPasswordForService(URI serviceURI,
boolean useURIPathRecursion,
String requestingMessage)
Get a username and password pair for the given service's URI, or null if
it does not exit.
|
boolean |
CredentialManager.hasEntryWithAlias(CredentialManager.KeystoreType ksType,
String alias)
Check if the Keystore/Truststore contains an entry with the given alias.
|
boolean |
CredentialManager.hasKeyPair(Key privateKey,
Certificate[] certs)
Checks if the Keystore contains the given key pair entry (private key and
its corresponding public key certificate chain).
|
boolean |
CredentialManager.hasTrustedCertificate(Certificate cert)
Checks if the Truststore contains the given public key certificate.
|
boolean |
CredentialManager.hasUsernamePasswordForService(URI serviceURI)
Checks if the Keystore contains a username and password for the given
service URI.
|
void |
CredentialManager.initializeSSL()
Set the default SSLContext to use Credential Manager's Keystore and
Truststore for managing SSL connections from Taverna and also set
HttpsURLConnection's default SSLSocketFactory to use the one from the
just configured SSLContext, i.e.
|
boolean |
CredentialManager.isKeyEntry(String alias)
Check if the given alias identifies a key entry in the Keystore.
|
KeyStore |
CredentialManager.loadPKCS12Keystore(Path pkcs12File,
String pkcs12Password)
Load a PKCS12-type keystore from a file using the supplied password.
|
void |
CredentialManager.setConfigurationDirectoryPath(Path credentialManagerDirectory)
Set the directory where Credential Manager's Keystore and Truststore
files will be read from.
|
Modifier and Type | Method and Description |
---|---|
String |
CredentialManagerImpl.addKeyPair(Key privateKey,
Certificate[] certs)
Insert a new key entry containing private key and the corresponding
public key certificate chain in the Keystore.
|
String |
CredentialManagerImpl.addTrustedCertificate(X509Certificate cert)
Insert a trusted certificate entry in the Truststore with an alias
constructed as:
"trustedcert#
|
String |
CredentialManagerImpl.addUsernameAndPasswordForService(UsernamePassword usernamePassword,
URI serviceURI)
Insert a username and password pair for the given service URI in the
Keystore.
|
void |
CredentialManagerImpl.changeMasterPassword(String newMasterPassword)
Change the Keystore and the Truststore's master password to the one
provided.
|
boolean |
CredentialManagerImpl.confirmMasterPassword(String password)
Checks if Keystore's master password is the same as the one provided.
|
X509Certificate |
DistinguishedNameParserImpl.convertCertificate(Certificate cert) |
void |
CredentialManagerImpl.deleteKeyPair(Key privateKey,
Certificate[] certs)
Delete a key pair entry from the Keystore given its private and public
key parts.
|
void |
CredentialManagerImpl.deleteKeyPair(String alias)
Delete a key pair entry from the Keystore given its alias.
|
void |
CredentialManagerImpl.deleteTrustedCertificate(String alias)
Delete a trusted certificate entry from the Truststore given its alias.
|
void |
CredentialManagerImpl.deleteTrustedCertificate(X509Certificate cert)
Delete a trusted certificate entry from the Truststore given the
certificate.
|
void |
CredentialManagerImpl.deleteUsernameAndPasswordForService(String serviceURL)
Deprecated.
|
void |
CredentialManagerImpl.deleteUsernameAndPasswordForService(URI serviceURI)
Delete a username and password pair for the given service URI from the
Keystore.
|
void |
CredentialManagerImpl.exportKeyPair(String alias,
Path exportFile,
String pkcs12Password)
Export a key entry containing private key and public key certificate
chain from the Keystore to a PKCS #12 file.
|
ArrayList<String> |
CredentialManagerImpl.getAliases(CredentialManager.KeystoreType ksType)
Get all the aliases from the Keystore/Truststore or null if there was
some error while accessing it.
|
Certificate |
CredentialManagerImpl.getCertificate(CredentialManager.KeystoreType ksType,
String alias)
Get certificate entry from the Keystore or Truststore.
|
protected Map<URI,URI> |
CredentialManagerImpl.getFragmentMappedURIsForAllUsernameAndPasswordPairs() |
Certificate[] |
CredentialManagerImpl.getKeyPairsCertificateChain(String alias)
Get certificate chain for the key pair entry from the Keystore.
|
Key |
CredentialManagerImpl.getKeyPairsPrivateKey(String alias)
Get the private key part of a key pair entry from the Keystore given its
alias.
|
List<URI> |
CredentialManagerImpl.getServiceURIsForAllUsernameAndPasswordPairs()
Get service URIs associated with all username/password pairs currently in
the Keystore.
|
ArrayList<String> |
CredentialManagerImpl.getServiceURLsforAllUsernameAndPasswordPairs()
Deprecated.
|
SSLSocketFactory |
CredentialManagerImpl.getTavernaSSLSocketFactory() |
String[] |
CredentialManagerImpl.getUsernameAndPasswordForService(String serviceURL)
Deprecated.
|
UsernamePassword |
CredentialManagerImpl.getUsernameAndPasswordForService(URI serviceURI,
boolean usePathRecursion,
String requestingMessage)
Get a username and password pair for the given service's URI, or null if
it does not exit.
|
boolean |
CredentialManagerImpl.hasEntryWithAlias(CredentialManager.KeystoreType ksType,
String alias)
Check if the Keystore/Truststore contains an entry with the given alias.
|
boolean |
CredentialManagerImpl.hasKeyPair(Key privateKey,
Certificate[] certs)
Checks if the Keystore contains the given key pair entry (private key and
its corresponding public key certificate chain).
|
boolean |
CredentialManagerImpl.hasTrustedCertificate(Certificate cert)
Checks if the Truststore contains the given public key certificate.
|
boolean |
CredentialManagerImpl.hasUsernamePasswordForService(URI serviceURI)
Checks if the Keystore contains a username and password for the given
service URI.
|
void |
CredentialManagerImpl.initializeSSL() |
boolean |
CredentialManagerImpl.isKeyEntry(String alias)
Check if the given alias identifies is a key entry in the Keystore.
|
KeyStore |
CredentialManagerImpl.loadPKCS12Keystore(Path pkcs12File,
String pkcs12Password)
Load a PKCS12-type keystore from a file using the supplied password.
|
String |
CredentialManagerImpl.saveUsernameAndPasswordForService(String username,
String password,
String serviceURL)
Deprecated.
|
void |
CredentialManagerImpl.setConfigurationDirectoryPath(Path credentialManagerPath)
Set the directory where Credential Manager's Keystore and Truststore
files will be read from.
|
Constructor and Description |
---|
CredentialManagerImpl() |
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.