org.apache.ws.security.components.crypto
Class AlgorithmSuiteValidator

java.lang.Object
  extended by org.apache.ws.security.components.crypto.AlgorithmSuiteValidator

public class AlgorithmSuiteValidator
extends Object

Validate signature/encryption/etc. algorithms against an AlgorithmSuite policy.


Constructor Summary
AlgorithmSuiteValidator(AlgorithmSuite algorithmSuite)
           
 
Method Summary
 void checkAsymmetricKeyLength(PublicKey publicKey)
          Check the asymmetric key length
 void checkAsymmetricKeyLength(X509Certificate x509Certificate)
          Check the asymmetric key length
 void checkC14nAlgorithm(String c14nAlgorithm)
          Check the C14n Algorithm
 void checkDerivedKeyAlgorithm(String algorithm)
          Check Derived Key algorithm
 void checkEncryptionDerivedKeyLength(int derivedKeyLength)
          Check Encryption Derived Key length (in bytes)
 void checkEncryptionKeyWrapAlgorithm(String keyWrapAlgorithm)
           
 void checkSignatureAlgorithms(javax.xml.crypto.dsig.XMLSignature xmlSignature)
          Check the Signature Algorithms
 void checkSignatureDerivedKeyLength(int derivedKeyLength)
          Check Signature Derived Key length (in bytes)
 void checkSignatureMethod(String signatureMethod)
          Check the Signature Method
 void checkSymmetricEncryptionAlgorithm(String symmetricAlgorithm)
           
 void checkSymmetricKeyLength(int secretKeyLength)
          Check the symmetric key length
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlgorithmSuiteValidator

public AlgorithmSuiteValidator(AlgorithmSuite algorithmSuite)
Method Detail

checkSignatureMethod

public void checkSignatureMethod(String signatureMethod)
                          throws WSSecurityException
Check the Signature Method

Throws:
WSSecurityException

checkC14nAlgorithm

public void checkC14nAlgorithm(String c14nAlgorithm)
                        throws WSSecurityException
Check the C14n Algorithm

Throws:
WSSecurityException

checkSignatureAlgorithms

public void checkSignatureAlgorithms(javax.xml.crypto.dsig.XMLSignature xmlSignature)
                              throws WSSecurityException
Check the Signature Algorithms

Throws:
WSSecurityException

checkEncryptionKeyWrapAlgorithm

public void checkEncryptionKeyWrapAlgorithm(String keyWrapAlgorithm)
                                     throws WSSecurityException
Throws:
WSSecurityException

checkSymmetricEncryptionAlgorithm

public void checkSymmetricEncryptionAlgorithm(String symmetricAlgorithm)
                                       throws WSSecurityException
Throws:
WSSecurityException

checkAsymmetricKeyLength

public void checkAsymmetricKeyLength(X509Certificate x509Certificate)
                              throws WSSecurityException
Check the asymmetric key length

Throws:
WSSecurityException

checkAsymmetricKeyLength

public void checkAsymmetricKeyLength(PublicKey publicKey)
                              throws WSSecurityException
Check the asymmetric key length

Throws:
WSSecurityException

checkSymmetricKeyLength

public void checkSymmetricKeyLength(int secretKeyLength)
                             throws WSSecurityException
Check the symmetric key length

Throws:
WSSecurityException

checkSignatureDerivedKeyLength

public void checkSignatureDerivedKeyLength(int derivedKeyLength)
                                    throws WSSecurityException
Check Signature Derived Key length (in bytes)

Throws:
WSSecurityException

checkEncryptionDerivedKeyLength

public void checkEncryptionDerivedKeyLength(int derivedKeyLength)
                                     throws WSSecurityException
Check Encryption Derived Key length (in bytes)

Throws:
WSSecurityException

checkDerivedKeyAlgorithm

public void checkDerivedKeyAlgorithm(String algorithm)
                              throws WSSecurityException
Check Derived Key algorithm

Throws:
WSSecurityException


Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.