Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- AbstractKeyPairGeneratorFactory - Class in se.swedenconnect.security.credential.container.keytype
-
Abstract base class for
KeyPairGeneratorFactory
. - AbstractKeyPairGeneratorFactory(String) - Constructor for class se.swedenconnect.security.credential.container.keytype.AbstractKeyPairGeneratorFactory
-
Constructor.
- AbstractKeyStorePkiCredentialContainer - Class in se.swedenconnect.security.credential.container
-
Abstract implementation of the
PkiCredentialContainer
interface for implementations that rely on an underlying Java KeyStore. - AbstractKeyStorePkiCredentialContainer(Provider, String) - Constructor for class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Constructor for the multi credential key store.
- AbstractPkcs11Configuration - Class in se.swedenconnect.security.credential.pkcs11conf
-
Base class for PKCS#11 configuration.
- AbstractPkcs11Configuration() - Constructor for class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Default constructor.
- AbstractPkcs11Configuration(String) - Constructor for class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Constructor assigning the external PKCS#11 configuration file.
- AbstractPkcs11Configuration(String, String, String, Integer) - Constructor for class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
A constructor setting the library, name, slot and slotListIndex individually.
- AbstractPkiCredential - Class in se.swedenconnect.security.credential
-
Abstract base class for classes implementing the
PkiCredential
interface. - AbstractPkiCredential() - Constructor for class se.swedenconnect.security.credential.AbstractPkiCredential
-
Default constructor.
- AbstractPkiCredentialContainer - Class in se.swedenconnect.security.credential.container
-
Abstract implementation of the
PkiCredentialContainer
interface. - AbstractPkiCredentialContainer(Provider) - Constructor for class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Constructor.
- AbstractReloadablePkiCredential - Class in se.swedenconnect.security.credential
-
Abstract base class for reloadable credentials.
- AbstractReloadablePkiCredential() - Constructor for class se.swedenconnect.security.credential.AbstractReloadablePkiCredential
-
Default constructor.
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
The default implementation verfies that the public key and the private key is available.
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
The default implementation verfies that the public key and the private key is available.
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
- afterPropertiesSet() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
The default implementation verfies that the public key and the private key is available.
- apply(ReloadablePkiCredential) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
- APS_BRAINPOOL_P192R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-192 R1 curve.
- APS_BRAINPOOL_P224R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-224 R1 curve.
- APS_BRAINPOOL_P256R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-256 R1 curve.
- APS_BRAINPOOL_P320R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-320 R1 curve.
- APS_BRAINPOOL_P384R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-384 R1 curve.
- APS_BRAINPOOL_P512R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Brainpool P-512 R1 curve.
- APS_NIST_P192 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Nist P-192 curve.
- APS_NIST_P224 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Nist P-224 curve.
- APS_NIST_P256 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Nist P-256 curve.
- APS_NIST_P384 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Nist P-384 curve.
- APS_NIST_P521 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Algorithm parameter spec Nist P-512 curve.
B
- BasicCredential - Class in se.swedenconnect.security.credential
-
A basic implementation of the
PkiCredential
interface. - BasicCredential() - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Default constructor.
- BasicCredential(X509Certificate, PrivateKey) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate and private key.
- BasicCredential(PublicKey, PrivateKey) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the public and private keys.
- BasicCredential(List<X509Certificate>, PrivateKey) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate(s) and private key.
- BasicCredential(List<X509Certificate>, Resource) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate(s) and private key.
- BasicCredential(List<X509Certificate>, Resource, char[]) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate and an encrypted private key.
- BasicCredential(Resource, PrivateKey) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate and private key.
- BasicCredential(Resource, Resource) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate and private key.
- BasicCredential(Resource, Resource, char[]) - Constructor for class se.swedenconnect.security.credential.BasicCredential
-
Constructor setting the certificate and an encrypted private key.
C
- cleanup() - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Traverses through all credentials in the multi credential key store and delets the expired ones.
- cleanup() - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Traverses through all credentials in the multi credential key store and delets the expired ones.
- convert(String) - Method in class se.swedenconnect.security.credential.converters.PropertyToPrivateKeyConverter
- convert(String) - Method in class se.swedenconnect.security.credential.converters.PropertyToX509CertificateConverter
- createInstance() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- createInstance() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
- createInstance() - Method in class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
- createKeyStore(Provider, char[]) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Creates the key store used to store generated keys.
- createKeyStore(Provider, char[]) - Method in class se.swedenconnect.security.credential.container.HsmPkiCredentialContainer
-
Creates the key store used to store generated keys.
- createKeyStore(Provider, char[]) - Method in class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Creates the key store used to store generated keys.
- CredentialMonitorBean - Interface in se.swedenconnect.security.credential.monitoring
-
Interface for a credential monitor bean.
- CredentialMonitorTask - Class in se.swedenconnect.security.credential.monitoring
-
Monitor task for credentials.
- CredentialMonitorTask(CredentialMonitorBean) - Constructor for class se.swedenconnect.security.credential.monitoring.CredentialMonitorTask
-
Constructor setting up a monitoring task.
D
- decodeCertificate(byte[]) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509Certificate
from its encoding. - decodeCertificate(InputStream) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509Certificate
from an input stream. - decodeCertificate(Resource) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509Certificate
from a resource. - decodeCrl(byte[]) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509CRL
from its encoding. - decodeCrl(InputStream) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509CRL
from an input stream. - decodeCrl(Resource) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
Decodes a
X509CRL
from a resource. - decodePrivateKey(byte[]) - Static method in class se.swedenconnect.security.credential.utils.PrivateKeyUtils
-
Decodes a private key in DER, PEM, and unencrypted PKCS#8 formats.
- decodePrivateKey(InputStream) - Static method in class se.swedenconnect.security.credential.utils.PrivateKeyUtils
-
Decodes a private key in DER, PEM, and unencrypted PKCS#8 formats.
- decodePrivateKey(Resource) - Static method in class se.swedenconnect.security.credential.utils.PrivateKeyUtils
-
Decodes a private key in DER, PEM, and unencrypted PKCS#8 formats.
- DEFAULT_PROVIDER_NAME - Static variable in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Default provider name.
- DEFAULT_SUPPORTED_KEY_TYPES - Static variable in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
The key gen types (see
KeyGenType
that are supported by default. - DefaultCredentialMonitorBean - Class in se.swedenconnect.security.credential.monitoring
-
The default implementation of the
CredentialMonitorBean
interface. - DefaultCredentialMonitorBean() - Constructor for class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Default constructor.
- DefaultCredentialMonitorBean(List<ReloadablePkiCredential>) - Constructor for class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Constructor setting up monitoring of the supplied credentials.
- DefaultCredentialMonitorBean(ReloadablePkiCredential) - Constructor for class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Constructor setting up monitoring of a single credential.
- DefaultCredentialMonitorBean(ReloadablePkiCredential, List<ReloadablePkiCredential>) - Constructor for class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Constructor setting up monitoring of a single credential.
- DefaultCredentialTestFunction - Class in se.swedenconnect.security.credential.monitoring
-
A default credential test function that tests a credential by getting a private key reference and signs test data using this key.
- DefaultCredentialTestFunction() - Constructor for class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
- DefaultPkcs11Configuration - Class in se.swedenconnect.security.credential.pkcs11conf
-
The default PKCS#11 configuration class.
- DefaultPkcs11Configuration() - Constructor for class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Default constructor.
- DefaultPkcs11Configuration(String) - Constructor for class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Constructor assigning the external PKCS#11 configuration file.
- DefaultPkcs11Configuration(String, String, String, Integer) - Constructor for class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
A constructor setting the library, name, slot and slotListIndex individually.
- deleteCredential(String) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Deletes the credential specified by the supplied alias.
- deleteCredential(String) - Method in class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Deletes the credential specified by the supplied alias.
- deleteCredential(String) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Deletes the credential specified by the supplied alias.
- destroy() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Implementations that need to perform clean-up actions should override this method.
- destroy() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- destroy() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
- destroy() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Implementations that need to perform clean-up actions should override this method.
- destroy() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Implementations that need to perform clean-up actions should override this method.
E
- EC_BRAINPOOL_192 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P192 R1
- EC_BRAINPOOL_224 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P224 R1
- EC_BRAINPOOL_256 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P256 R1
- EC_BRAINPOOL_320 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P320 R1
- EC_BRAINPOOL_384 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P384 R1
- EC_BRAINPOOL_512 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve Brainpool P512 R1
- EC_P192 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve P-192
- EC_P224 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve P-224
- EC_P256 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve P-256
- EC_P384 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve P-384
- EC_P521 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for elliptic curve keys with curve P-521
- EcKeyPairGeneratorFactory - Class in se.swedenconnect.security.credential.container.keytype
-
Factory for elliptic curve key pair generators.
- EcKeyPairGeneratorFactory(String, AlgorithmParameterSpec) - Constructor for class se.swedenconnect.security.credential.container.keytype.EcKeyPairGeneratorFactory
-
Constructor for the Elliptic curve key pair generator factory.
- ECParameterSpecs - Class in se.swedenconnect.security.credential.container.keytype
-
Various parameter specs for elliptic curves.
G
- generateAlias() - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Overridable function to generate the unique alias for each generated key.
- generateCredential(String) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Generates a key pair and self-issued certificate for a new credential in the container.
- generateCredential(String) - Method in class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Generates a key pair and self-issued certificate for a new credential in the container.
- generateCredential(String) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Generates a key pair and self-issued certificate for a new credential in the container.
- get(Provider, String, char[]) - Method in interface se.swedenconnect.security.credential.pkcs11conf.Pkcs11ObjectProvider
-
Gets a reference to an object residing on the PKCS#11 device.
- getAlgorithmName(KeyPair) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Overridable method to provide the certificate signing JCA algorithm name of the algorithm used to sign the self-signed certificate associated with a generated key.
- getBaseProviderName() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Gets the provider name (see
DefaultPkcs11Configuration.setBaseProviderName(String)
). - getCertificate() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Gets the certificate holding the public key of the key pair.
- getCertificate() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Gets the certificate holding the public key of the key pair.
- getCertificate() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Gets the certificate holding the public key of the key pair.
- getCertificate() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Gets the certificate holding the public key of the key pair.
- getCertificateChain() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Gets a certificate chain for the credential, where the first element is the entity certificate (
PkiCredential.getCertificate()
). - getCertificateChain() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Gets a certificate chain for the credential, where the first element is the entity certificate (
PkiCredential.getCertificate()
). - getCertificateChain() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Gets a certificate chain for the credential, where the first element is the entity certificate (
PkiCredential.getCertificate()
). - getCertificateChain() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Gets a certificate chain for the credential, where the first element is the entity certificate (
PkiCredential.getCertificate()
). - getConfigurationData() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Gets the configuration data for this configuration.
- getConfigurationFile() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Gets the complete path to the configuration file.
- getCredential(String) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredential(String) - Method in class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredential(String) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredentialFromAlias(String) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredentialFromAlias(String) - Method in class se.swedenconnect.security.credential.container.HsmPkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredentialFromAlias(String) - Method in class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Gets the credential for a specific alias from the credential container.
- getCredentialProvider() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Gets the getter function object that should be used to obtain the private key and certificate from the PKCS#11 device.
- getCredentialProvider() - Method in interface se.swedenconnect.security.credential.pkcs11conf.Pkcs11Configuration
-
Gets the getter function object that should be used to obtain the private key and certificate from the PKCS#11 device.
- getDefaultName() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
If the credential
name
property is not explicitly assigned usingAbstractPkiCredential.setName(String)
a name is calculated based on a credential's properties. - getDefaultName() - Method in class se.swedenconnect.security.credential.BasicCredential
-
Gets the subject DN of the certificate and if no certificate is available an UUID is used.
- getDefaultName() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
If the credential
name
property is not explicitly assigned usingAbstractPkiCredential.setName(String)
a name is calculated based on a credential's properties. - getDefaultName() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
If the credential
name
property is not explicitly assigned usingAbstractPkiCredential.setName(String)
a name is calculated based on a credential's properties. - getEntityCertificate() - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- getEntityCertificateChain() - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- getExpiryTime(String) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets the expiry time of the credential specified by alias.
- getExpiryTime(String) - Method in class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Gets the expiry time of the credential specified by alias.
- getExpiryTime(String) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Gets the expiry time of the credential specified by alias.
- getFactory(String) - Static method in class se.swedenconnect.security.credential.container.keytype.KeyPairGeneratorFactoryRegistry
-
Gets a
KeyPairGeneratorFactory
instance that can be used for creating key pairs corresponding to the suppliedkeyGenType
(seeKeyGenType
). - getKeyGeneratorFactory(String) - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Gets a
KeyPairGeneratorFactory
that can be used to generate key pairs given the suppliedkeyTypeName
. - getKeyPairGenerator(Provider) - Method in class se.swedenconnect.security.credential.container.keytype.EcKeyPairGeneratorFactory
-
Creates a key pair generator.
- getKeyPairGenerator(Provider) - Method in interface se.swedenconnect.security.credential.container.keytype.KeyPairGeneratorFactory
-
Creates a key pair generator.
- getKeyPairGenerator(Provider) - Method in class se.swedenconnect.security.credential.container.keytype.RsaKeyPairGeneratorFactory
-
Creates a key pair generator.
- getKeyStore() - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets the key store instance where all generated keys are stored.
- getKeyValidity() - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Gets the key validity.
- getLibrary() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Returns the path to the PKCS#11 library on the host to use for the provider.
- getName() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Gets the name of the credential.
- getName() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Returns the name of the HSM slot.
- getName() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Gets the name of the credential.
- getObjectType() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- getObjectType() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
- getObjectType() - Method in class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
- getPassword() - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets the password for accessing the key store keys.
- getPassword() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Gets the password for unlocking the keystore.
- getPin() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties
-
Gets the PIN (which is the same as
keyPassword
). - getPkcs11Configuration() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Gets the complete path to the PKCS#11 configuration file to use to configure the provider in the cases the type is "PKCS11".
- getPrivateKey() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Gets the private key.
- getPrivateKey() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Gets the private key.
- getPrivateKey() - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- getPrivateKey() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Gets the private key.
- getPrivateKey() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Gets the private key.
- getPrivateKeyProvider() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Gets the getter function object that should be used to obtain a private key from the PKCS#11 device.
- getPrivateKeyProvider() - Method in interface se.swedenconnect.security.credential.pkcs11conf.Pkcs11Configuration
-
Gets the getter function object that should be used to obtain a private key from the PKCS#11 device.
- getProvider() - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Gets the security provider used by the container.
- getProvider() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- getProvider() - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Gets the Java security
Provider
to use when setting up a PKCS#11 credential. - getProvider() - Method in interface se.swedenconnect.security.credential.pkcs11conf.Pkcs11Configuration
-
Gets the Java security
Provider
to use when setting up a PKCS#11 credential. - getPublicKey() - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Gets the public key.
- getPublicKey() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Gets the public key.
- getPublicKey() - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- getPublicKey() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Gets the public key.
- getPublicKey() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Gets the public key.
- getResource() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Gets the resource holding the KeyStore.
- getSlot() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Returns the slot number/id to use.
- getSlotListIndex() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Returns the slot list index to use.
- getTestFunction() - Method in class se.swedenconnect.security.credential.AbstractReloadablePkiCredential
-
A credential may be monitored to ensure that it is functional.
- getTestFunction() - Method in interface se.swedenconnect.security.credential.ReloadablePkiCredential
-
A credential may be monitored to ensure that it is functional.
- getType() - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Gets the type of KeyStore.
- getX500Name(BigInteger) - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Overridable function to produce the issuer and subject name for the self issued certificate.
H
- HsmPkiCredentialContainer - Class in se.swedenconnect.security.credential.container
-
Implements a
PkiCredentialContainer
based on a HSM. - HsmPkiCredentialContainer(String, String) - Constructor for class se.swedenconnect.security.credential.container.HsmPkiCredentialContainer
-
Constructor accepting a PKCS#11 configuration file for getting the PKCS#11 provider.
- HsmPkiCredentialContainer(Provider, String) - Constructor for class se.swedenconnect.security.credential.container.HsmPkiCredentialContainer
-
Constructor for the default PKCS11 credential container where keys are stored in a HSM slot.
- HsmPkiCredentialContainer(Pkcs11Configuration, String) - Constructor for class se.swedenconnect.security.credential.container.HsmPkiCredentialContainer
-
Constructor accepting a
Pkcs11Configuration
object for getting the PKCS#11 provider.
I
- init() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
The
init
method is here just because it is a nicer name forafterPropertiesSet
. - InMemoryPkiCredentialContainer - Class in se.swedenconnect.security.credential.container
-
An in-memory implementation of the
PkiCredentialContainer
interface. - InMemoryPkiCredentialContainer(String) - Constructor for class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Constructor loading the security provider identified by
providerName
. - InMemoryPkiCredentialContainer(Provider) - Constructor for class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Constructor.
- isEmpty() - Method in class se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties
-
Predicate that returns
true
if this object is "empty", meaning that no settings have been applied. - isExpired(String) - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Checks if the entry identified with
alias
is expired. - isHardwareCredential() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Predicate that tells whether this credential resides in a hardware module.
- isHardwareCredential() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Returns
true
. - isHardwareCredential() - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Predicate that tells whether this credential resides in a hardware module.
K
- KeyGenType - Class in se.swedenconnect.security.credential.container.keytype
-
Key generation static constants and resources for use with the
PkiCredentialContainer
key generation functions. - KeyGenType() - Constructor for class se.swedenconnect.security.credential.container.keytype.KeyGenType
- KeyPairGeneratorFactory - Interface in se.swedenconnect.security.credential.container.keytype
-
Intarface for a factory for creating a
KeyPairGenerator
suitable for a specific key type. - KeyPairGeneratorFactoryRegistry - Class in se.swedenconnect.security.credential.container.keytype
-
A registry for getting a
KeyPairGeneratorFactory
based on a key type (seeKeyGenType
). - KeyStoreCredential - Class in se.swedenconnect.security.credential
- KeyStoreCredential() - Constructor for class se.swedenconnect.security.credential.KeyStoreCredential
-
Default constructor.
- KeyStoreCredential(KeyStore, String, char[]) - Constructor for class se.swedenconnect.security.credential.KeyStoreCredential
-
Constructor accepting an already loaded
KeyStore
. - KeyStoreCredential(Resource, char[], String, char[]) - Constructor for class se.swedenconnect.security.credential.KeyStoreCredential
-
A constructor that creates and loads a
KeyStore
from the given resource. - KeyStoreCredential(Resource, String, char[], String, char[]) - Constructor for class se.swedenconnect.security.credential.KeyStoreCredential
-
A constructor that creates and loads a
KeyStore
of the given type from the given resource. - KeyStoreCredential(Resource, String, String, char[], String, char[]) - Constructor for class se.swedenconnect.security.credential.KeyStoreCredential
-
A constructor that creates and loads a
KeyStore
of the given type from the given resource using the given provider. - KeyStoreFactoryBean - Class in se.swedenconnect.security.credential.factory
-
Factory bean for creating and unlocking a
KeyStore
. - KeyStoreFactoryBean() - Constructor for class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Default constructor.
- KeyStoreFactoryBean(Resource, char[]) - Constructor for class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Constructor that accepts a resource reference a keystore and the password to unlock this file.
- KeyStoreFactoryBean(Resource, char[], String) - Constructor for class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Constructor that accepts a resource reference to a keystore, the password to unlock this file and the store type ("JKS", "PKCS12", ...).
L
- listCredentials() - Method in class se.swedenconnect.security.credential.container.AbstractKeyStorePkiCredentialContainer
-
Gets all available credential aliases from the multi credential key store.
- listCredentials() - Method in class se.swedenconnect.security.credential.container.InMemoryPkiCredentialContainer
-
Gets all available credential aliases from the multi credential key store.
- listCredentials() - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Gets all available credential aliases from the multi credential key store.
O
- OpenSamlCredential - Class in se.swedenconnect.security.credential.opensaml
-
A credential that implements OpenSAML's
X509Credential
interface and wraps aPkiCredential
. - OpenSamlCredential(X509Certificate, PrivateKey) - Constructor for class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
-
Constructor setting up the credential by explicitly assigning the certificate and private key.
- OpenSamlCredential(PkiCredential) - Constructor for class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
-
Constructor setting up the OpenSAML credential by assigning a
PkiCredential
instance.
P
- Pkcs11Configuration - Interface in se.swedenconnect.security.credential.pkcs11conf
-
Interface for a PKCS#11 configuration.
- Pkcs11ConfigurationException - Exception in se.swedenconnect.security.credential.pkcs11conf
-
Exception class for reporting invalid PKCS#11 configuration or failures to instatiate a PKCS#11 provider.
- Pkcs11ConfigurationException(String) - Constructor for exception se.swedenconnect.security.credential.pkcs11conf.Pkcs11ConfigurationException
-
Constructor setting the error message.
- Pkcs11ConfigurationException(String, Throwable) - Constructor for exception se.swedenconnect.security.credential.pkcs11conf.Pkcs11ConfigurationException
-
Constructor setting the error message and the cause of the error.
- Pkcs11Credential - Class in se.swedenconnect.security.credential
-
A PKCS#11 credential implementation of the
PkiCredential
andReloadablePkiCredential
interfaces. - Pkcs11Credential() - Constructor for class se.swedenconnect.security.credential.Pkcs11Credential
-
Default constructor.
- Pkcs11Credential(Pkcs11Configuration, String, char[]) - Constructor for class se.swedenconnect.security.credential.Pkcs11Credential
-
Constructor.
- Pkcs11Credential(Pkcs11Configuration, String, char[], X509Certificate) - Constructor for class se.swedenconnect.security.credential.Pkcs11Credential
-
Constructor that takes a X.509 certificate as an argument.
- Pkcs11Credential(Pkcs11Configuration, String, char[], List<X509Certificate>) - Constructor for class se.swedenconnect.security.credential.Pkcs11Credential
-
Constructor that takes a list of X.509 certificates as an argument.
- Pkcs11ObjectProvider<T> - Interface in se.swedenconnect.security.credential.pkcs11conf
-
A functional interface for getting a reference to an object residing on a PKCS#11 device.
- PkiCredential - Interface in se.swedenconnect.security.credential
-
A representation of a PKI key pair that holds a private key and a X.509 certificate (or just a public key).
- PkiCredentialConfigurationProperties - Class in se.swedenconnect.security.credential.factory
-
A utility class that can be used as a configuration properties object for representing a credential (for Spring Boot).
- PkiCredentialConfigurationProperties() - Constructor for class se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties
- PkiCredentialContainer - Interface in se.swedenconnect.security.credential.container
-
This interface defines the function of a multi credential container with keys that are contained and managed inside the container for its entire lifetime.
- PkiCredentialContainerException - Exception in se.swedenconnect.security.credential.container
-
General exception for errors when managing PkiCredentials in a PkiCredentialContainer.
- PkiCredentialContainerException(String) - Constructor for exception se.swedenconnect.security.credential.container.PkiCredentialContainerException
-
Constructor.
- PkiCredentialContainerException(String, Throwable) - Constructor for exception se.swedenconnect.security.credential.container.PkiCredentialContainerException
-
Constructor.
- PkiCredentialFactoryBean - Class in se.swedenconnect.security.credential.factory
-
A utility factory that can create any type of
PkiCredential
class defined in this module. - PkiCredentialFactoryBean() - Constructor for class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Default constructor.
- PkiCredentialFactoryBean(PkiCredentialConfigurationProperties) - Constructor for class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Constructor that initializes the factory from the supplied credential configuration properties object.
- PrivateKeyUtils - Class in se.swedenconnect.security.credential.utils
-
Utility methods for handling private keys.
- PropertyToPrivateKeyConverter - Class in se.swedenconnect.security.credential.converters
-
A
Converter
that gets the property value (e.g.,classpath:signing.key
) and instantiates aPrivateKey
object. - PropertyToPrivateKeyConverter() - Constructor for class se.swedenconnect.security.credential.converters.PropertyToPrivateKeyConverter
- PropertyToX509CertificateConverter - Class in se.swedenconnect.security.credential.converters
-
A
Converter
that gets the property value (e.g.,classpath:cert.crt
) and instantiates aX509Certificate
object. - PropertyToX509CertificateConverter() - Constructor for class se.swedenconnect.security.credential.converters.PropertyToX509CertificateConverter
R
- registerFactory(String, KeyPairGeneratorFactory) - Static method in class se.swedenconnect.security.credential.container.keytype.KeyPairGeneratorFactoryRegistry
-
Registers a factory for the given key gen type.
- reload() - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
If the
KeyStoreCredential
is of PKCS#11 type, the method will reload the private key. - reload() - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Is called if the connection to the device has been lost.
- reload() - Method in interface se.swedenconnect.security.credential.ReloadablePkiCredential
-
Some implementations of key pairs, such as HSM-based, may need to be reloaded.
- reload(ReloadablePkiCredential) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Performs reloading of the supplied credential.
- ReloadablePkiCredential - Interface in se.swedenconnect.security.credential
-
An interface for credentials are "testable" and "reloadable".
- RSA_2048 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for RSA 2048
- RSA_3072 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for RSA 3072
- RSA_4096 - Static variable in class se.swedenconnect.security.credential.container.keytype.KeyGenType
-
Key type identifier for RSA 4096
- RsaKeyPairGeneratorFactory - Class in se.swedenconnect.security.credential.container.keytype
-
Factory for RSA key pair generators.
- RsaKeyPairGeneratorFactory(String, int) - Constructor for class se.swedenconnect.security.credential.container.keytype.RsaKeyPairGeneratorFactory
-
Constructor for the RSA key pair generator factory
- run() - Method in class se.swedenconnect.security.credential.monitoring.CredentialMonitorTask
S
- se.swedenconnect.security.credential - package se.swedenconnect.security.credential
-
Generic support for X.509 credentials.
- se.swedenconnect.security.credential.container - package se.swedenconnect.security.credential.container
-
Support for credential containers.
- se.swedenconnect.security.credential.container.keytype - package se.swedenconnect.security.credential.container.keytype
- se.swedenconnect.security.credential.converters - package se.swedenconnect.security.credential.converters
-
Spring converters that are usable when working with credentials.
- se.swedenconnect.security.credential.factory - package se.swedenconnect.security.credential.factory
-
Spring factory beans for creating credential objects.
- se.swedenconnect.security.credential.monitoring - package se.swedenconnect.security.credential.monitoring
-
Some types of credentials may need to be monitored to ensure that they are still in function.
- se.swedenconnect.security.credential.opensaml - package se.swedenconnect.security.credential.opensaml
-
Credentials defined for use with OpenSAML/Shibboleth.
- se.swedenconnect.security.credential.pkcs11conf - package se.swedenconnect.security.credential.pkcs11conf
-
Interfaces and classes for handling PKCS#11 provider configuration.
- se.swedenconnect.security.credential.utils - package se.swedenconnect.security.credential.utils
-
Utilities for working with credentials.
- setAdditionalForReload(List<ReloadablePkiCredential>) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns the a list of additional credentials that should be reloaded if a test fails.
- setAlias(String) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the keystore alias to the entry holding the key pair.
- setAlias(String) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the alias of the KeyStore entry.
- setAlias(String) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Assigns the alias of the key pair on the token.
- setApplicationContext(ApplicationContext) - Method in class se.swedenconnect.security.credential.converters.PropertyToPrivateKeyConverter
- setApplicationContext(ApplicationContext) - Method in class se.swedenconnect.security.credential.converters.PropertyToX509CertificateConverter
- setBaseProviderName(String) - Method in class se.swedenconnect.security.credential.pkcs11conf.DefaultPkcs11Configuration
-
Assigns name of the SunPKCS11 security provider that we use to create new instances that have names according to "SunPKCS11-name", where 'name' is gotten from the configuration.
- setCertificate(X509Certificate) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns a certificate to an already created credential holding only a key pair.
- setCertificate(X509Certificate) - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Assigns a certificate to an already created credential holding only a key pair.
- setCertificate(Resource) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns the certificate by assigning a resource pointing to a DER- och PEM-encoded certificate.
- setCertificate(Resource) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the resource holding the certificate part of the credential (optional since the certificate may be part of a keystore).
- setCertificateChain(List<X509Certificate>) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns a certificate chain to an already created credential holding only a key pair.
- setCertificateChain(List<X509Certificate>) - Method in interface se.swedenconnect.security.credential.PkiCredential
-
Assigns a certificate chain to an already created credential holding only a key pair.
- setCertificates(List<Resource>) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the list of resources holding the certificate chain that part of the credential (optional since the certificate may be part of a keystore).
- setConfiguration(Pkcs11Configuration) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Assigns the PKCS#11 configuration for the token that holds this credential.
- setConfigurationFile(String) - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Assigns the complete path to the external PKCS#11 configuration file.
- setConfigurationFile(String) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Assigns the PKCS#11 configuration file to use.
- setCredential(ReloadablePkiCredential) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns the credential that should be monitored.
- setCredentials(List<ReloadablePkiCredential>) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns the credentials that should be monitored.
- setDsaSignatureAlgorithm(String) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
-
Assigns the DSA signature algorithm to use.
- setEcSignatureAlgorithm(String) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
-
Assigns the EC signature algorithm to use.
- setEntityCertificate(X509Certificate) - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- setEntityCertificateChain(Collection<X509Certificate>) - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- setFailureCallback(BiFunction<ReloadablePkiCredential, Exception, Boolean>) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns callback function that is invoked if the test of a credential fails.
- setKeyPassword(char[]) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the password to unlock the private key from the keystore.
- setKeyPassword(char[]) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the key password needed to unlock the key entry.
- setKeyStore(KeyStore) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the keystore to read the key pair from.
- setKeyValidity(Duration) - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Assigns the duration for the validity of generated credentials.
- setKeyValidity(Duration) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Assigns the duration for the validity of generated credentials.
- setLibrary(String) - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Assigns the path to the PKCS#11 library on the host to use for the provider.
- setName(String) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns the credential name.
- setName(String) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the name of the credential.
- setName(String) - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Assigns the name of the HSM slot.
- setPassword(char[]) - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Assigns the password for unlocking the keystore.
- setPassword(char[]) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the keystore password.
- setPassword(char[]) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the password needed to load the KeyStore.
- setPin(char[]) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialConfigurationProperties
-
Assigns the PIN (which is the same as
keyPassword
. - setPin(char[]) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the PIN.
- setPin(char[]) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Assigns the PIN (key password) needed to unlock the token.
- setPkcs11Configuration(String) - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Sets the complete path to the PKCS#11 configuration file to use to configure the provider in the cases the type is "PKCS11".
- setPkcs11Configuration(String) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the PKCS#11 configuration file to use.
- setPkcs11Configuration(String) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the PKCS#11 configuration file to use.
- setPrivateKey(PrivateKey) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns the private key.
- setPrivateKey(PrivateKey) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Will throw an
IllegalArgumentException
since the private key will be read from the keystore. - setPrivateKey(PrivateKey) - Method in class se.swedenconnect.security.credential.opensaml.OpenSamlCredential
- setPrivateKey(PrivateKey) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Will throw an
IllegalArgumentException
since the private key will be read from the device. - setPrivateKey(Resource) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns a private key resource.
- setPrivateKey(Resource) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the resource holding the private key part of the credential (optional since the key may be part of a keystore).
- setPrivateKey(Resource, char[]) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns a private key resource holding an encrypted private key.
- setProvider(String) - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
- setProvider(String) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the name of the security provider to use when creating the KeyStore instance.
- setProvider(String) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the name of the security provider to use when loading the KeyStore.
- setProvider(String) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
-
The name for a specific security
Provider
to use. - setPublicKey(PublicKey) - Method in class se.swedenconnect.security.credential.AbstractPkiCredential
-
Assigns the public key of the key pair.
- setPublicKey(PublicKey) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Will throw an
IllegalArgumentException
since the public key will be read from the keystore. - setPublicKey(PublicKey) - Method in class se.swedenconnect.security.credential.Pkcs11Credential
-
Will throw an
IllegalArgumentException
since the public key will be read from the certificate. - setReloadFailureCallback(BiConsumer<ReloadablePkiCredential, Exception>) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns a callback function that is invoked if the reloading of a failed credential fails.
- setReloadSuccessCallback(Consumer<ReloadablePkiCredential>) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Assigns a callback function that is invoked if the reloading of a failed credential was successful.
- setResource(Resource) - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Assigns the resource holding the KeyStore.
- setResource(Resource) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the resource to the keystore containing the credential.
- setResource(Resource) - Method in class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
-
Assigns the resource holding the certificate.
- setResource(Resource) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the resource holding the KeyStore to load.
- setRsaSignatureAlgorithm(String) - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialTestFunction
-
Assigns the RSA signature algorithm to use.
- setSlot(String) - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Assigns the slot number/id to use.
- setSlotListIndex(Integer) - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
-
Assigns the slot list index to use.
- setSupportedKeyTypes(List<String>) - Method in class se.swedenconnect.security.credential.container.AbstractPkiCredentialContainer
-
Assigns the key types that this container supports.
- setSupportedKeyTypes(List<String>) - Method in interface se.swedenconnect.security.credential.container.PkiCredentialContainer
-
Assigns the key types that this container supports.
- setTestFunction(Function<ReloadablePkiCredential, Exception>) - Method in class se.swedenconnect.security.credential.AbstractReloadablePkiCredential
-
Assigns a test function for this credential.
- setType(String) - Method in class se.swedenconnect.security.credential.factory.KeyStoreFactoryBean
-
Assigns the type of KeyStore.
- setType(String) - Method in class se.swedenconnect.security.credential.factory.PkiCredentialFactoryBean
-
Assigns the type of keystore.
- setType(String) - Method in class se.swedenconnect.security.credential.KeyStoreCredential
-
Assigns the KeyStore type to use, ("JKS", "PKCS12", "PKCS11", ...).
- SoftPkiCredentialContainer - Class in se.swedenconnect.security.credential.container
-
Implements a
PkiCredentialContainer
based on aKeyStore
that is held in memory (i.e. - SoftPkiCredentialContainer(String) - Constructor for class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Constructor loading the security provider identified by
providerName
. - SoftPkiCredentialContainer(String, String) - Constructor for class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Constructor loading the security provider identified by
providerName
. - SoftPkiCredentialContainer(Provider) - Constructor for class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Constructor.
- SoftPkiCredentialContainer(Provider, String) - Constructor for class se.swedenconnect.security.credential.container.SoftPkiCredentialContainer
-
Constructor.
- SPEC_BRAINPOOL_P192R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P192R1.
- SPEC_BRAINPOOL_P224R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P224 R1.
- SPEC_BRAINPOOL_P256R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P256 R1.
- SPEC_BRAINPOOL_P320R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P320 R1.
- SPEC_BRAINPOOL_P384R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P384 R1.
- SPEC_BRAINPOOL_P512R1 - Static variable in class se.swedenconnect.security.credential.container.keytype.ECParameterSpecs
-
Parameter spec Brainpool P512 R1.
- supports(String) - Method in class se.swedenconnect.security.credential.container.keytype.AbstractKeyPairGeneratorFactory
-
Predicate telling whether this factory instance supports a particular key type (see
KeyGenType
). - supports(String) - Method in interface se.swedenconnect.security.credential.container.keytype.KeyPairGeneratorFactory
-
Predicate telling whether this factory instance supports a particular key type (see
KeyGenType
).
T
- test() - Method in interface se.swedenconnect.security.credential.monitoring.CredentialMonitorBean
-
Performs testing, and possibly reloading, of the credentials that this monitor bean has been configured to monitor.
- test() - Method in class se.swedenconnect.security.credential.monitoring.DefaultCredentialMonitorBean
-
Performs testing, and possibly reloading, of the credentials that this monitor bean has been configured to monitor.
- toLogString(X509Certificate) - Static method in class se.swedenconnect.security.credential.utils.X509Utils
-
The
Certificate.toString()
prints way too much for a normal log entry. - toString() - Method in class se.swedenconnect.security.credential.pkcs11conf.AbstractPkcs11Configuration
X
- X509CertificateFactoryBean - Class in se.swedenconnect.security.credential.factory
-
A factory bean for creating X.509 certificates read from a resource.
- X509CertificateFactoryBean() - Constructor for class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
-
Default constructor.
- X509CertificateFactoryBean(Resource) - Constructor for class se.swedenconnect.security.credential.factory.X509CertificateFactoryBean
-
Constructor taking a resource/path to a DER- or PEM-encoded certificate.
- X509Utils - Class in se.swedenconnect.security.credential.utils
-
Utility methods for working with X.509 certificates and CRL:s.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form