Package org.opensaml.xmlsec.algorithm
Class AlgorithmSupportTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.xmlsec.algorithm.AlgorithmSupportTest
-
public class AlgorithmSupportTest extends OpenSAMLInitBaseTestCase
Unit test forKeySupport.
-
-
Constructor Summary
Constructors Constructor Description AlgorithmSupportTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidtestCheckKeyAlgorithmAndLength()voidtestCredentialSupportsAlgorithmForEncryption()voidtestCredentialSupportsAlgorithmForSigning()voidtestGenerateKeyPairAndCredentialWithLength()voidtestGenerateKeyPairAndCredentialWithParamSpec()voidtestGenerateKeyPairWithLength()voidtestGenerateKeyPairWithParamSpec()voidtestGenerateSymmetricKey()voidtestGenerateSymmetricKeyAndCredential()voidtestGetKeyAlgorithm()Test mapping algorithm URI's to JCA key algorithm specifiers.voidtestIsBlockEncryption()voidtestIsDataEncryptionAlgorithm()voidtestIsKeyTransportAlgorithm()voidtestIsSymmetricKeyWrap()voidtestValidateAlgorithmURI()Test algorithm URI whitelist and blacklist validation.-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Method Detail
-
testIsKeyTransportAlgorithm
public void testIsKeyTransportAlgorithm()
-
testIsDataEncryptionAlgorithm
public void testIsDataEncryptionAlgorithm()
-
testIsSymmetricKeyWrap
public void testIsSymmetricKeyWrap()
-
testIsBlockEncryption
public void testIsBlockEncryption()
-
testCredentialSupportsAlgorithmForSigning
public void testCredentialSupportsAlgorithmForSigning() throws NoSuchAlgorithmException, KeyException, NoSuchProviderException
-
testCredentialSupportsAlgorithmForEncryption
public void testCredentialSupportsAlgorithmForEncryption() throws NoSuchAlgorithmException, NoSuchProviderException
-
testCheckKeyAlgorithmAndLength
public void testCheckKeyAlgorithmAndLength() throws NoSuchAlgorithmException, NoSuchProviderException
-
testGetKeyAlgorithm
public void testGetKeyAlgorithm()
Test mapping algorithm URI's to JCA key algorithm specifiers.
-
testValidateAlgorithmURI
public void testValidateAlgorithmURI()
Test algorithm URI whitelist and blacklist validation.
-
testGenerateSymmetricKey
public void testGenerateSymmetricKey() throws NoSuchAlgorithmException, KeyException- Throws:
NoSuchAlgorithmExceptionKeyException
-
testGenerateSymmetricKeyAndCredential
public void testGenerateSymmetricKeyAndCredential() throws NoSuchAlgorithmException, KeyException- Throws:
NoSuchAlgorithmExceptionKeyException
-
testGenerateKeyPairWithLength
public void testGenerateKeyPairWithLength() throws NoSuchAlgorithmException, NoSuchProviderException
-
testGenerateKeyPairAndCredentialWithLength
public void testGenerateKeyPairAndCredentialWithLength() throws NoSuchAlgorithmException, NoSuchProviderException
-
testGenerateKeyPairWithParamSpec
public void testGenerateKeyPairWithParamSpec() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException
-
testGenerateKeyPairAndCredentialWithParamSpec
public void testGenerateKeyPairAndCredentialWithParamSpec() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException
-
-