Package org.apache.wss4j.common.crypto
Class AlgorithmSuiteValidator
java.lang.Object
org.apache.wss4j.common.crypto.AlgorithmSuiteValidator
Validate signature/encryption/etc. algorithms against an AlgorithmSuite policy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckAsymmetricKeyLength(X509Certificate x509Certificate) Check the asymmetric key lengthvoidcheckAsymmetricKeyLength(X509Certificate[] x509Certificates) Check the asymmetric key lengthvoidcheckAsymmetricKeyLength(PublicKey publicKey) Check the asymmetric key lengthvoidcheckC14nAlgorithm(String c14nAlgorithm) Check the C14n AlgorithmvoidcheckDerivedKeyAlgorithm(String algorithm) Check Derived Key algorithmvoidcheckEncryptionDerivedKeyLength(int derivedKeyLength) Check Encryption Derived Key length (in bytes)voidcheckEncryptionKeyWrapAlgorithm(String keyWrapAlgorithm) voidcheckSignatureAlgorithms(XMLSignature xmlSignature) Check the Signature AlgorithmsvoidcheckSignatureDerivedKeyLength(int derivedKeyLength) Check Signature Derived Key length (in bytes)voidcheckSignatureMethod(String signatureMethod) Check the Signature MethodvoidcheckSymmetricEncryptionAlgorithm(String symmetricAlgorithm) voidcheckSymmetricKeyLength(int secretKeyLength) Check the symmetric key length
-
Constructor Details
-
AlgorithmSuiteValidator
-
-
Method Details
-
checkSignatureMethod
Check the Signature Method- Throws:
WSSecurityException
-
checkC14nAlgorithm
Check the C14n Algorithm- Throws:
WSSecurityException
-
checkSignatureAlgorithms
Check the Signature Algorithms- Throws:
WSSecurityException
-
checkEncryptionKeyWrapAlgorithm
- Throws:
WSSecurityException
-
checkSymmetricEncryptionAlgorithm
- Throws:
WSSecurityException
-
checkAsymmetricKeyLength
Check the asymmetric key length- Throws:
WSSecurityException
-
checkAsymmetricKeyLength
Check the asymmetric key length- Throws:
WSSecurityException
-
checkAsymmetricKeyLength
Check the asymmetric key length- Throws:
WSSecurityException
-
checkSymmetricKeyLength
Check the symmetric key length- Throws:
WSSecurityException
-
checkSignatureDerivedKeyLength
Check Signature Derived Key length (in bytes)- Throws:
WSSecurityException
-
checkEncryptionDerivedKeyLength
Check Encryption Derived Key length (in bytes)- Throws:
WSSecurityException
-
checkDerivedKeyAlgorithm
Check Derived Key algorithm- Throws:
WSSecurityException
-