Class SigningKeyUsageDirective

java.lang.Object
se.swedenconnect.signservice.certificate.base.config.SigningKeyUsageDirective

public class SigningKeyUsageDirective extends Object
Directive when configuring signing keys. Signing keys are given the key usages for signing by default, including non-repudiation. Using this directive it is also possible to mark that the key should be used for encryption, and to disable the non-repudiation usage.
  • Constructor Details

    • SigningKeyUsageDirective

      public SigningKeyUsageDirective()
    • SigningKeyUsageDirective

      public SigningKeyUsageDirective(boolean encrypt, boolean excludeNonRepudiation)
  • Method Details

    • builder

    • isEncrypt

      public boolean isEncrypt()
      Flag that marks the key usage for the signing key for encryption (as well as signing).
    • isExcludeNonRepudiation

      public boolean isExcludeNonRepudiation()
      Flag that marks that the key usage for the signing key should not include non-repudiation.
    • setEncrypt

      public void setEncrypt(boolean encrypt)
      Flag that marks the key usage for the signing key for encryption (as well as signing).
    • setExcludeNonRepudiation

      public void setExcludeNonRepudiation(boolean excludeNonRepudiation)
      Flag that marks that the key usage for the signing key should not include non-repudiation.
    • 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