Class CryptoSettings
java.lang.Object
de.xima.fc.certificate.mgmt.CryptoSettings
- All Implemented Interfaces:
Serializable
Configuration settings for cryptographic operations.
- Since:
- 8.5.0
- Author:
- Norman Lorenz
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoSettings(boolean failCertificateUpdateOnSubjectMissmatch, boolean failCertificateUpdateOnCertificateUsageMissmatch, int nearExpirationDays, EKeyAlgorithm defaultKeyAlgorithm, int defaultKeySizeRSA, int defaultKeySizeDSA, String defaultEcCurve, ESignatureType defaultSignatureAlgorithmRSA, ESignatureType defaultSignatureAlgorithmDSA, ESignatureType defaultSignatureAlgorithmEC, CronTriggerInfoDto certificateExpirationJobTrigger) Creates a newCryptoSettingsinstance. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanInformation about the cron job that checks for certificate expirations.The default Elliptic curve (EC) for EC algorithm.The default key algorithm for the certificate module.intThe default key size for DSA algorithm.intThe default key size for RSA algorithm.The default signature algorithm for DSA algorithm.The default signature algorithm for EC algorithm.The default signature algorithm for RSA algorithm.intThe number of days before expiration to consider a certificate as "near expiration".inthashCode()booleanIf true, the import will fail if the usage of the imported certificate does not match.booleanIf true, the import will fail if the subject of the imported certificate does not match.voidsetCertificateExpirationJobTrigger(CronTriggerInfoDto certificateExpirationJobTrigger) Information about the cron job that checks for certificate expirations.voidsetDefaultEcCurve(String defaultEcCurve) The default Elliptic curve (EC) for EC algorithm.voidsetDefaultKeyAlgorithm(EKeyAlgorithm defaultKeyAlgorithm) The default key algorithm for the certificate module.voidsetDefaultKeySizeDSA(int defaultKeySizeDSA) The default key size for DSA algorithm.voidsetDefaultKeySizeRSA(int defaultKeySizeRSA) The default key size for RSA algorithm.voidsetDefaultSignatureAlgorithmDSA(ESignatureType defaultSignatureAlgorithmDSA) The default signature algorithm for DSA algorithm.voidsetDefaultSignatureAlgorithmEC(ESignatureType defaultSignatureAlgorithmEC) The default signature algorithm for EC algorithm.voidsetDefaultSignatureAlgorithmRSA(ESignatureType defaultSignatureAlgorithmRSA) The default signature algorithm for RSA algorithm.voidsetFailCertificateUpdateOnCertificateUsageMissmatch(boolean failCertificateUpdateOnCertificateUsageMissmatch) If true, the import will fail if the usage of the imported certificate does not match.voidsetFailCertificateUpdateOnSubjectMissmatch(boolean failCertificateUpdateOnSubjectMissmatch) If true, the import will fail if the subject of the imported certificate does not match.voidsetNearExpirationDays(int nearExpirationDays) The number of days before expiration to consider a certificate as "near expiration".toString()
-
Constructor Details
-
CryptoSettings
public CryptoSettings(boolean failCertificateUpdateOnSubjectMissmatch, boolean failCertificateUpdateOnCertificateUsageMissmatch, int nearExpirationDays, EKeyAlgorithm defaultKeyAlgorithm, int defaultKeySizeRSA, int defaultKeySizeDSA, String defaultEcCurve, ESignatureType defaultSignatureAlgorithmRSA, ESignatureType defaultSignatureAlgorithmDSA, ESignatureType defaultSignatureAlgorithmEC, CronTriggerInfoDto certificateExpirationJobTrigger) Creates a newCryptoSettingsinstance.- Parameters:
failCertificateUpdateOnSubjectMissmatch- If true, the import will fail if the subject of the imported certificate does not match.failCertificateUpdateOnCertificateUsageMissmatch- If true, the import will fail if the usage of the imported certificate does not match.nearExpirationDays- The number of days before expiration to consider a certificate as "near expiration".defaultKeyAlgorithm- The default key algorithm for the certificate module.defaultKeySizeRSA- The default key size for RSA algorithm.defaultKeySizeDSA- The default key size for DSA algorithm.defaultEcCurve- The default Elliptic curve (EC) for EC algorithm.defaultSignatureAlgorithmRSA- The default signature algorithm for RSA algorithm.defaultSignatureAlgorithmDSA- The default signature algorithm for DSA algorithm.defaultSignatureAlgorithmEC- The default signature algorithm for EC algorithm.certificateExpirationJobTrigger- Information about the cron job that checks for certificate expirations.
-
-
Method Details
-
isFailCertificateUpdateOnSubjectMissmatch
public boolean isFailCertificateUpdateOnSubjectMissmatch()If true, the import will fail if the subject of the imported certificate does not match. -
isFailCertificateUpdateOnCertificateUsageMissmatch
public boolean isFailCertificateUpdateOnCertificateUsageMissmatch()If true, the import will fail if the usage of the imported certificate does not match. -
getNearExpirationDays
public int getNearExpirationDays()The number of days before expiration to consider a certificate as "near expiration". -
getDefaultKeyAlgorithm
The default key algorithm for the certificate module. -
getDefaultKeySizeRSA
public int getDefaultKeySizeRSA()The default key size for RSA algorithm. -
getDefaultKeySizeDSA
public int getDefaultKeySizeDSA()The default key size for DSA algorithm. -
getDefaultEcCurve
The default Elliptic curve (EC) for EC algorithm. -
getDefaultSignatureAlgorithmRSA
The default signature algorithm for RSA algorithm. -
getDefaultSignatureAlgorithmDSA
The default signature algorithm for DSA algorithm. -
getDefaultSignatureAlgorithmEC
The default signature algorithm for EC algorithm. -
getCertificateExpirationJobTrigger
Information about the cron job that checks for certificate expirations. -
setFailCertificateUpdateOnSubjectMissmatch
public void setFailCertificateUpdateOnSubjectMissmatch(boolean failCertificateUpdateOnSubjectMissmatch) If true, the import will fail if the subject of the imported certificate does not match. -
setFailCertificateUpdateOnCertificateUsageMissmatch
public void setFailCertificateUpdateOnCertificateUsageMissmatch(boolean failCertificateUpdateOnCertificateUsageMissmatch) If true, the import will fail if the usage of the imported certificate does not match. -
setNearExpirationDays
public void setNearExpirationDays(int nearExpirationDays) The number of days before expiration to consider a certificate as "near expiration". -
setDefaultKeyAlgorithm
The default key algorithm for the certificate module. -
setDefaultKeySizeRSA
public void setDefaultKeySizeRSA(int defaultKeySizeRSA) The default key size for RSA algorithm. -
setDefaultKeySizeDSA
public void setDefaultKeySizeDSA(int defaultKeySizeDSA) The default key size for DSA algorithm. -
setDefaultEcCurve
The default Elliptic curve (EC) for EC algorithm. -
setDefaultSignatureAlgorithmRSA
The default signature algorithm for RSA algorithm. -
setDefaultSignatureAlgorithmDSA
The default signature algorithm for DSA algorithm. -
setDefaultSignatureAlgorithmEC
The default signature algorithm for EC algorithm. -
setCertificateExpirationJobTrigger
Information about the cron job that checks for certificate expirations. -
equals
-
canEqual
-
hashCode
-
toString
-