Package org.opensaml.xmlsec.impl
Class BasicEncryptionParametersResolverTest
- java.lang.Object
-
- org.opensaml.core.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.xml.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.impl.BasicEncryptionParametersResolverTest
-
public class BasicEncryptionParametersResolverTest extends XMLObjectBaseTestCase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classBasicEncryptionParametersResolverTest.MapBasedKeyTransportAlgorithmPredicate
-
Field Summary
Fields Modifier and Type Field Description private Credentialaes128Cred1private Stringaes128Cred1KeyNameprivate Credentialaes192Cred1private Stringaes192Cred1KeyNameprivate Credentialaes256Cred1private Stringaes256Cred1KeyNameprivate BasicEncryptionConfigurationconfig1private BasicEncryptionConfigurationconfig2private BasicEncryptionConfigurationconfig3private CriteriaSetcriteriaSetprivate EncryptionConfigurationCriterioncriterionprivate StringdefaultAES128DataAlgoprivate StringdefaultAES192DataAlgoprivate StringdefaultAES256DataAlgoprivate NamedKeyInfoGeneratorManagerdefaultDataEncryptionKeyInfoGeneratorManagerprivate NamedKeyInfoGeneratorManagerdefaultKeyTransportKeyInfoGeneratorManagerprivate StringdefaultRSAKeyTransportAlgoprivate BasicEncryptionParametersResolverresolverprivate CredentialrsaCred1private StringrsaCred1KeyName-
Fields inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description BasicEncryptionParametersResolverTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildCredentials()voidsetUp()voidtestAbsentCriterion()voidtestAES128KeyWrap()voidtestBasicRSA()voidtestDataCredOnly()voidtestDataCredOnlyWithBlacklistAndFallthrough()voidtestKeyInfoGenerationProfile()voidtestKeyTransportAlgorithmPredicate()voidtestKeyTransportCredWithBlacklistAndFallthrough()voidtestNoCredentials()voidtestNoDataEncryptionAlgorithmForEncrypterAutoGen()voidtestNoDataEncryptionAlgorithmForResolvedDataCredential()voidtestNoKeyTransportAlgorithms()voidtestNullCriteriaSet()voidtestResolve()voidtestResolveKeyTransportAlgorithmPredicate()voidtestRSAOAEPParameters()voidtestRSAWithAlgorithmOverrides()voidtestRSAWithBlacklist()voidtestRSAWithGeneratedDataCredential()voidtestRSAWithWhitelist()-
Methods inherited from class org.opensaml.core.xml.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
resolver
private BasicEncryptionParametersResolver resolver
-
criteriaSet
private CriteriaSet criteriaSet
-
criterion
private EncryptionConfigurationCriterion criterion
-
config1
private BasicEncryptionConfiguration config1
-
config2
private BasicEncryptionConfiguration config2
-
config3
private BasicEncryptionConfiguration config3
-
rsaCred1
private Credential rsaCred1
-
aes128Cred1
private Credential aes128Cred1
-
aes192Cred1
private Credential aes192Cred1
-
aes256Cred1
private Credential aes256Cred1
-
rsaCred1KeyName
private String rsaCred1KeyName
-
aes128Cred1KeyName
private String aes128Cred1KeyName
-
aes192Cred1KeyName
private String aes192Cred1KeyName
-
aes256Cred1KeyName
private String aes256Cred1KeyName
-
defaultRSAKeyTransportAlgo
private String defaultRSAKeyTransportAlgo
-
defaultAES128DataAlgo
private String defaultAES128DataAlgo
-
defaultAES192DataAlgo
private String defaultAES192DataAlgo
-
defaultAES256DataAlgo
private String defaultAES256DataAlgo
-
defaultKeyTransportKeyInfoGeneratorManager
private NamedKeyInfoGeneratorManager defaultKeyTransportKeyInfoGeneratorManager
-
defaultDataEncryptionKeyInfoGeneratorManager
private NamedKeyInfoGeneratorManager defaultDataEncryptionKeyInfoGeneratorManager
-
-
Method Detail
-
buildCredentials
@BeforeClass public void buildCredentials() throws NoSuchAlgorithmException, NoSuchProviderException
-
setUp
@BeforeMethod public void setUp()
-
testBasicRSA
public void testBasicRSA() throws ResolverException- Throws:
ResolverException
-
testRSAWithAlgorithmOverrides
public void testRSAWithAlgorithmOverrides() throws ResolverException- Throws:
ResolverException
-
testRSAWithBlacklist
public void testRSAWithBlacklist() throws ResolverException- Throws:
ResolverException
-
testRSAWithWhitelist
public void testRSAWithWhitelist() throws ResolverException- Throws:
ResolverException
-
testRSAWithGeneratedDataCredential
public void testRSAWithGeneratedDataCredential() throws ResolverException- Throws:
ResolverException
-
testRSAOAEPParameters
public void testRSAOAEPParameters() throws ResolverException- Throws:
ResolverException
-
testAES128KeyWrap
public void testAES128KeyWrap() throws ResolverException- Throws:
ResolverException
-
testDataCredOnly
public void testDataCredOnly() throws ResolverException- Throws:
ResolverException
-
testKeyTransportCredWithBlacklistAndFallthrough
public void testKeyTransportCredWithBlacklistAndFallthrough() throws ResolverException- Throws:
ResolverException
-
testDataCredOnlyWithBlacklistAndFallthrough
public void testDataCredOnlyWithBlacklistAndFallthrough() throws ResolverException- Throws:
ResolverException
-
testKeyTransportAlgorithmPredicate
public void testKeyTransportAlgorithmPredicate() throws ResolverException- Throws:
ResolverException
-
testKeyInfoGenerationProfile
public void testKeyInfoGenerationProfile() throws ResolverException- Throws:
ResolverException
-
testResolve
public void testResolve() throws ResolverException- Throws:
ResolverException
-
testNoCredentials
public void testNoCredentials() throws ResolverException- Throws:
ResolverException
-
testNoKeyTransportAlgorithms
public void testNoKeyTransportAlgorithms() throws ResolverException- Throws:
ResolverException
-
testNoDataEncryptionAlgorithmForResolvedDataCredential
public void testNoDataEncryptionAlgorithmForResolvedDataCredential() throws ResolverException- Throws:
ResolverException
-
testNoDataEncryptionAlgorithmForEncrypterAutoGen
public void testNoDataEncryptionAlgorithmForEncrypterAutoGen() throws ResolverException- Throws:
ResolverException
-
testResolveKeyTransportAlgorithmPredicate
public void testResolveKeyTransportAlgorithmPredicate()
-
testNullCriteriaSet
public void testNullCriteriaSet() throws ResolverException- Throws:
ResolverException
-
testAbsentCriterion
public void testAbsentCriterion() throws ResolverException- Throws:
ResolverException
-
-