Class KeyStoreSelector
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.keystore.KeyStoreSelector
-
- All Implemented Interfaces:
Serializable
public final class KeyStoreSelector extends Object implements 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:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static 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.KeyStoreScopegetDefaultScope()The scope of the default keystore.LonggetKeyStoreId()The ID of an existing keystore.NewKeyStoreDefinitiongetNewKeyStoreDefinition()The definition of a new keystore.inthashCode()StringtoString()
-
-
-
Method Detail
-
forDefaultScope
public static KeyStoreSelector forDefaultScope(KeyStoreScope defaultScope)
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
public static KeyStoreSelector forExistingKeyStore(Long keyStoreId)
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
public static KeyStoreSelector forNewKeyStore(NewKeyStoreDefinition newKeyStoreDefinition)
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
public Long 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
public KeyStoreScope 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
public NewKeyStoreDefinition 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.
-
-