Class CryptoSettings

java.lang.Object
de.xima.fc.certificate.mgmt.CryptoSettings
All Implemented Interfaces:
Serializable

public class CryptoSettings extends Object implements Serializable
Configuration settings for cryptographic operations.
Since:
8.5.0
Author:
Norman Lorenz
See Also:
  • 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 new CryptoSettings instance.
      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

      public EKeyAlgorithm 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

      public String getDefaultEcCurve()
      The default Elliptic curve (EC) for EC algorithm.
    • getDefaultSignatureAlgorithmRSA

      public ESignatureType getDefaultSignatureAlgorithmRSA()
      The default signature algorithm for RSA algorithm.
    • getDefaultSignatureAlgorithmDSA

      public ESignatureType getDefaultSignatureAlgorithmDSA()
      The default signature algorithm for DSA algorithm.
    • getDefaultSignatureAlgorithmEC

      public ESignatureType getDefaultSignatureAlgorithmEC()
      The default signature algorithm for EC algorithm.
    • getCertificateExpirationJobTrigger

      public CronTriggerInfoDto 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

      public void setDefaultKeyAlgorithm(EKeyAlgorithm defaultKeyAlgorithm)
      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

      public void setDefaultEcCurve(String defaultEcCurve)
      The default Elliptic curve (EC) for EC algorithm.
    • setDefaultSignatureAlgorithmRSA

      public void setDefaultSignatureAlgorithmRSA(ESignatureType defaultSignatureAlgorithmRSA)
      The default signature algorithm for RSA algorithm.
    • setDefaultSignatureAlgorithmDSA

      public void setDefaultSignatureAlgorithmDSA(ESignatureType defaultSignatureAlgorithmDSA)
      The default signature algorithm for DSA algorithm.
    • setDefaultSignatureAlgorithmEC

      public void setDefaultSignatureAlgorithmEC(ESignatureType defaultSignatureAlgorithmEC)
      The default signature algorithm for EC algorithm.
    • setCertificateExpirationJobTrigger

      public void setCertificateExpirationJobTrigger(CronTriggerInfoDto certificateExpirationJobTrigger)
      Information about the cron job that checks for certificate expirations.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object