From c78b302e19d74de4bc66b337558c72f1a59c3e7b Mon Sep 17 00:00:00 2001 From: Freeman Fang Date: Thu, 25 Jan 2024 16:13:59 -0500 Subject: [PATCH] [WSS-709]Add more setter methods for AlgorithmSuite --- .../wss4j/policy/model/AlgorithmSuite.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java b/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java index b442ad2b4..f574de05c 100644 --- a/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java +++ b/policy/src/main/java/org/apache/wss4j/policy/model/AlgorithmSuite.java @@ -402,26 +402,50 @@ public String getName() { public String getDigest() { return digest; } + + public void setDigest(String digest) { + this.digest = digest; + } public String getEncryption() { return encryption; } + + public void setEncryption(String encryption) { + this.encryption = encryption; + } public String getSymmetricKeyWrap() { return symmetricKeyWrap; } + + public void setSymmetricKeyWrap(String symmetricKeyWrap) { + this.symmetricKeyWrap = symmetricKeyWrap; + } public String getAsymmetricKeyWrap() { return asymmetricKeyWrap; } + + public void setAsymmetricKeyWrap(String asymmetricKeyWrap) { + this.asymmetricKeyWrap = asymmetricKeyWrap; + } public String getEncryptionKeyDerivation() { return encryptionKeyDerivation; } + + public void setEncryptionKeyDerivation(String encryptionKeyDerivation) { + this.encryptionKeyDerivation = encryptionKeyDerivation; + } public String getSignatureKeyDerivation() { return signatureKeyDerivation; } + + public void setSignatureKeyDerivation(String signatureKeyDerivation) { + this.signatureKeyDerivation = signatureKeyDerivation; + } public String getSymmetricSignature() { return symmetricSignature; @@ -442,26 +466,50 @@ public void setAsymmetricSignature(String asymmetricSignature) { public int getEncryptionDerivedKeyLength() { return encryptionDerivedKeyLength; } + + public void getEncryptionDerivedKeyLength(int encryptionDerivedKeyLength) { + this.encryptionDerivedKeyLength = encryptionDerivedKeyLength; + } public int getSignatureDerivedKeyLength() { return signatureDerivedKeyLength; } + + public void setSignatureDerivedKeyLength(int signatureDerivedKeyLength) { + this.signatureDerivedKeyLength = signatureDerivedKeyLength; + } public int getMinimumSymmetricKeyLength() { return minimumSymmetricKeyLength; } + + public void setMinimumSymmetricKeyLength(int minimumSymmetricKeyLength) { + this.minimumSymmetricKeyLength = minimumSymmetricKeyLength; + } public int getMaximumSymmetricKeyLength() { return maximumSymmetricKeyLength; } + public void setMaximumSymmetricKeyLength(int maximumSymmetricKeyLength) { + this.maximumSymmetricKeyLength = maximumSymmetricKeyLength; + } + public int getMinimumAsymmetricKeyLength() { return minimumAsymmetricKeyLength; } + + public void setMinimumAsymmetricKeyLength(int minimumAsymmetricKeyLength) { + this.minimumAsymmetricKeyLength = minimumAsymmetricKeyLength; + } public int getMaximumAsymmetricKeyLength() { return maximumAsymmetricKeyLength; } + + public void setMaximumAsymmetricKeyLength(int maximumAsymmetricKeyLength) { + this.maximumAsymmetricKeyLength = maximumAsymmetricKeyLength; + } public void setNamespace(String ns) { this.ns = ns;