Class StaticX509CredentialKeyManager
java.lang.Object
org.opensaml.security.x509.tls.impl.StaticX509CredentialKeyManager
- All Implemented Interfaces:
KeyManager,X509KeyManager
An implementation of
X509KeyManager based on a single statically configured
private key and certificate chain, supplied either directly or via an instance of
X509Credential.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate X509Certificate[]The certificate chain instance.private StringThe alias representing the supplied static credential.private org.slf4j.LoggerLogger.private PrivateKeyThe private key instance. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.StaticX509CredentialKeyManager(X509Credential credential) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionchooseClientAlias(String[] arg0, Principal[] arg1, Socket arg2) chooseServerAlias(String arg0, Principal[] arg1, Socket arg2) getCertificateChain(String arg0) String[]getClientAliases(String arg0, Principal[] arg1) getPrivateKey(String arg0) String[]getServerAliases(String arg0, Principal[] arg1)
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logLogger. -
privateKey
The private key instance. -
certificateChain
The certificate chain instance. -
internalAlias
The alias representing the supplied static credential.
-
-
Constructor Details
-
StaticX509CredentialKeyManager
Constructor.- Parameters:
credential- the static credential managed by this key manager
-
StaticX509CredentialKeyManager
Constructor.- Parameters:
key- the private key managed by this key managerchain- the certificate chain managed by this key manager
-
-
Method Details
-
chooseClientAlias
- Specified by:
chooseClientAliasin interfaceX509KeyManager
-
getClientAliases
- Specified by:
getClientAliasesin interfaceX509KeyManager
-
getCertificateChain
- Specified by:
getCertificateChainin interfaceX509KeyManager
-
getPrivateKey
- Specified by:
getPrivateKeyin interfaceX509KeyManager
-
chooseServerAlias
- Specified by:
chooseServerAliasin interfaceX509KeyManager
-
getServerAliases
- Specified by:
getServerAliasesin interfaceX509KeyManager
-