Class KeyStoreSelector
java.lang.Object
de.xima.fc.certificate.mgmt.keystore.KeyStoreSelector
- All Implemented Interfaces:
Serializable
Model for selecting a keystore. This is used when creating certificates to determine in which keystore the
certificate should be stored. The keystore can either be an existing one, a new one that should be created, or the
default keystore for a specified scope.
- Since:
- 26.11.25
- Author:
- Norman Lorenz
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic KeyStoreSelectorforDefaultScope(KeyStoreScope defaultScope) Creates a selector for the default keystore of a specified scope.static KeyStoreSelectorforExistingKeyStore(Long keyStoreId) Creates a selector for an existing keystore.static KeyStoreSelectorforNewKeyStore(NewKeyStoreDefinition newKeyStoreDefinition) Creates a selector for a new keystore.The scope of the default keystore.The ID of an existing keystore.The definition of a new keystore.inthashCode()toString()
-
Method Details
-
forDefaultScope
Creates a selector for the default keystore of a specified scope.- Parameters:
defaultScope- The scope of the default keystore.- Returns:
- A new instance of
KeyStoreSelectorfor the specified scope.
-
forExistingKeyStore
Creates a selector for an existing keystore.- Parameters:
keyStoreId- The ID of the existing keystore.- Returns:
- A new instance of
KeyStoreSelectorfor the specified keystore ID.
-
forNewKeyStore
Creates a selector for a new keystore.- Parameters:
newKeyStoreDefinition- The definition of the new keystore.- Returns:
- A new instance of
KeyStoreSelectorfor the specified new keystore definition.
-
getKeyStoreId
The ID of an existing keystore. This is only valid ifdefaultScopeandnewKeyStoreDefinitionarenull. This field must not benullwhen using the default keystore for a specified scope viadefaultScopeor creating a new keystore vianewKeyStoreDefinition. -
getDefaultScope
The scope of the default keystore. This is only valid ifkeyStoreIdandnewKeyStoreDefinitionarenull. This field must not benullwhen using an existing keystore viakeyStoreIdor creating a new keystore vianewKeyStoreDefinition. -
getNewKeyStoreDefinition
The definition of a new keystore. This is only valid ifkeyStoreIdanddefaultScopearenull. This field must not benullwhen using an existing keystore viakeyStoreIdor using the default keystore for a specified scope viadefaultScope. -
equals
-
hashCode
-
toString
-