Class SigningKeyUsageDirective
java.lang.Object
se.swedenconnect.signservice.certificate.base.config.SigningKeyUsageDirective
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
protected boolean
boolean
int
hashCode()
boolean
Flag that marks the key usage for the signing key for encryption (as well as signing).boolean
Flag that marks that the key usage for the signing key should not include non-repudiation.void
setEncrypt
(boolean encrypt) Flag that marks the key usage for the signing key for encryption (as well as signing).void
setExcludeNonRepudiation
(boolean excludeNonRepudiation) Flag that marks that the key usage for the signing key should not include non-repudiation.toString()
-
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
-
canEqual
-
hashCode
public int hashCode() -
toString
-