Class AlgorithmSupportTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.xmlsec.algorithm.tests.AlgorithmSupportTest
public class AlgorithmSupportTest
extends org.opensaml.core.testing.OpenSAMLInitBaseTestCase
Unit test for
KeySupport.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidTest mapping algorithm URI's to JCA key algorithm specifiers.voidvoidvoidvoidvoidTest algorithm URI whitelist and blacklist validation.Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Constructor Details
-
AlgorithmSupportTest
public AlgorithmSupportTest()
-
-
Method Details
-
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
- Throws:
NoSuchAlgorithmExceptionKeyException
-
testGenerateSymmetricKeyAndCredential
- 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
-