Class CryptoSettingsServiceImpl
- java.lang.Object
-
- de.xima.fc.certificate.mgmt.internal.CryptoSettingsServiceImpl
-
- All Implemented Interfaces:
CryptoSettingsService
@ApplicationScoped public class CryptoSettingsServiceImpl extends Object implements CryptoSettingsService
- Since:
- 8.5.0
- Author:
- Norman Lorenz
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CryptoSettingsgetCryptoSettings(CertificateManagementUser user)Retrieves the cryptographic settings for a specific user in the formcycle certificate module.CryptoSpecgetCryptoSpec()Retrieves the specifications for cryptographic algorithms, etc. used in the formcycle certificate module.voidupdateCryptoSpec(CryptoSettings settings, CertificateManagementUser user)Updates the cryptographic settings in the formcycle certificate module.
-
-
-
Method Detail
-
getCryptoSettings
public CryptoSettings getCryptoSettings(CertificateManagementUser user) throws FcCertificateManagementException
Description copied from interface:CryptoSettingsServiceRetrieves the cryptographic settings for a specific user in the formcycle certificate module.- Specified by:
getCryptoSettingsin interfaceCryptoSettingsService- Parameters:
user- the user for whom to retrieve the cryptographic settings, which must not be null.- Returns:
- a
CryptoSettingsobject containing the cryptographic settings for the specified user. - Throws:
FcCertificateManagementException- if the user does not have permission to view the cryptographic settings.
-
getCryptoSpec
public CryptoSpec getCryptoSpec()
Description copied from interface:CryptoSettingsServiceRetrieves the specifications for cryptographic algorithms, etc. used in the formcycle certificate module.- Specified by:
getCryptoSpecin interfaceCryptoSettingsService- Returns:
- a
CryptoSpecobject containing the supported key sizes, default key sizes, and signature algorithms for RSA, DSA, and ECDSA.
-
updateCryptoSpec
public void updateCryptoSpec(CryptoSettings settings, CertificateManagementUser user) throws FcCertificateManagementException
Description copied from interface:CryptoSettingsServiceUpdates the cryptographic settings in the formcycle certificate module.- Specified by:
updateCryptoSpecin interfaceCryptoSettingsService- Parameters:
settings- the new cryptographic settings to apply, which must not be null.user- the user updating the key algorithm specifications.- Throws:
FcCertificateManagementException- if the user does not have permission to update the key algorithm specifications.
-
-