Class KeyStoreInfoDTO
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.keystore.KeyStoreInfoDTO
-
- All Implemented Interfaces:
Serializable
public class KeyStoreInfoDTO extends Object implements Serializable
A DTO that contains information about a key store.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeyStoreInfoDTO(Long id, int lockingVersion, boolean defaultKeyStore, Set<CertificateInfoDTO> certificates)Creates a newKeyStoreInfoDTOinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)LonggetAssigneeId()The ID of the owner (user or tenant) or NULL for system keystores.EAssigneeTypegetAssigneeType()Assigned to a user, client or system.Set<CertificateInfoDTO>getCertificates()The certificates in the keystore.StringgetDescription()An optional description of the key store.LonggetId()The (database) id of the key store.intgetLockingVersion()The version for optimistic locking.StringgetName()The name of the key store.Set<UserGroupId>getPrivateKeyAccessUserGroups()The IDs of the user groups that have access to the private keys in this keystore.inthashCode()booleanisDefaultKeyStore()Whether the keystore is the default keystore.booleanisPrivateKeyAccessRestricted()Whether access to the private keys in this keystore is restricted to certain user groups.voidsetAssigneeId(Long assigneeId)The ID of the owner (user or tenant) or NULL for system keystores.voidsetAssigneeType(EAssigneeType assigneeType)Assigned to a user, client or system.voidsetDescription(String description)An optional description of the key store.voidsetName(String name)The name of the key store.voidsetPrivateKeyAccessRestricted(boolean privateKeyAccessRestricted)Whether access to the private keys in this keystore is restricted to certain user groups.voidsetPrivateKeyAccessUserGroups(Set<UserGroupId> privateKeyAccessUserGroups)The IDs of the user groups that have access to the private keys in this keystore.StringtoString()
-
-
-
Constructor Detail
-
KeyStoreInfoDTO
public KeyStoreInfoDTO(Long id, int lockingVersion, boolean defaultKeyStore, Set<CertificateInfoDTO> certificates)
Creates a newKeyStoreInfoDTOinstance.- Parameters:
id- The (database) id of the key store.lockingVersion- The version for optimistic locking.defaultKeyStore- Whether the keystore is the default keystore.certificates- The certificates in the keystore.
-
-
Method Detail
-
getId
public Long getId()
The (database) id of the key store.
-
getLockingVersion
public int getLockingVersion()
The version for optimistic locking.
-
isDefaultKeyStore
public boolean isDefaultKeyStore()
Whether the keystore is the default keystore.
-
getCertificates
public Set<CertificateInfoDTO> getCertificates()
The certificates in the keystore.
-
getAssigneeType
public EAssigneeType getAssigneeType()
Assigned to a user, client or system.
-
getAssigneeId
public Long getAssigneeId()
The ID of the owner (user or tenant) or NULL for system keystores.
-
getName
public String getName()
The name of the key store.
-
getDescription
public String getDescription()
An optional description of the key store.
-
isPrivateKeyAccessRestricted
public boolean isPrivateKeyAccessRestricted()
Whether access to the private keys in this keystore is restricted to certain user groups.
-
getPrivateKeyAccessUserGroups
public Set<UserGroupId> getPrivateKeyAccessUserGroups()
The IDs of the user groups that have access to the private keys in this keystore.
-
setAssigneeType
public void setAssigneeType(EAssigneeType assigneeType)
Assigned to a user, client or system.
-
setAssigneeId
public void setAssigneeId(Long assigneeId)
The ID of the owner (user or tenant) or NULL for system keystores.
-
setName
public void setName(String name)
The name of the key store.
-
setDescription
public void setDescription(String description)
An optional description of the key store.
-
setPrivateKeyAccessRestricted
public void setPrivateKeyAccessRestricted(boolean privateKeyAccessRestricted)
Whether access to the private keys in this keystore is restricted to certain user groups.
-
setPrivateKeyAccessUserGroups
public void setPrivateKeyAccessUserGroups(Set<UserGroupId> privateKeyAccessUserGroups)
The IDs of the user groups that have access to the private keys in this keystore.
-
canEqual
protected boolean canEqual(Object other)
-
-