Package org.opensaml.xmlsec.keyinfo.impl
Class KeyAgreementKeyInfoGeneratorTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.xmlsec.keyinfo.impl.KeyAgreementKeyInfoGeneratorTest
-
public class KeyAgreementKeyInfoGeneratorTest extends XMLObjectBaseTestCase
-
-
Field Summary
Fields Modifier and Type Field Description private KeyAgreementCredentialcredDiffieHellmanExplicitKDFprivate KeyAgreementCredentialcredDiffieHellmanLegacyKDFprivate KeyAgreementCredentialcredECDHprivate CredentialcredOriginatorDiffieHellmanprivate CredentialcredOriginatorECDHprivate CredentialcredRecipientDiffieHellmanprivate CredentialcredRecipientECDHprivate SecretKeyderivedKeyprivate KeyAgreementKeyInfoGeneratorFactoryfactoryprivate KeyPairkeyPairOriginatorDiffieHellmanprivate KeyPairkeyPairOriginatorECDHprivate KeyPairkeyPairRecipientDiffieHellmanprivate KeyPairkeyPairRecipientECDH-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description KeyAgreementKeyInfoGeneratorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeClass()voidbeforeMethod()voidDiffieHellmanWithConcatKDFWithDefaults()voidDiffieHellmanWithLegacyKDFWithDefaults()voidECDHWithConcatKDFWithDefaults()voidECDHWithPBKDF2WithDefaults()voidnoEmitKeyinfos()voidnoKeyInfoManagers()-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
keyPairOriginatorECDH
private KeyPair keyPairOriginatorECDH
-
keyPairRecipientECDH
private KeyPair keyPairRecipientECDH
-
keyPairOriginatorDiffieHellman
private KeyPair keyPairOriginatorDiffieHellman
-
keyPairRecipientDiffieHellman
private KeyPair keyPairRecipientDiffieHellman
-
credOriginatorECDH
private Credential credOriginatorECDH
-
credRecipientECDH
private Credential credRecipientECDH
-
credOriginatorDiffieHellman
private Credential credOriginatorDiffieHellman
-
credRecipientDiffieHellman
private Credential credRecipientDiffieHellman
-
derivedKey
private SecretKey derivedKey
-
credECDH
private KeyAgreementCredential credECDH
-
credDiffieHellmanExplicitKDF
private KeyAgreementCredential credDiffieHellmanExplicitKDF
-
credDiffieHellmanLegacyKDF
private KeyAgreementCredential credDiffieHellmanLegacyKDF
-
factory
private KeyAgreementKeyInfoGeneratorFactory factory
-
-
Method Detail
-
beforeClass
@BeforeClass public void beforeClass() throws NoSuchAlgorithmException, NoSuchProviderException, InvalidAlgorithmParameterException
-
beforeMethod
@BeforeMethod public void beforeMethod()
-
ECDHWithConcatKDFWithDefaults
public void ECDHWithConcatKDFWithDefaults() throws Exception- Throws:
Exception
-
ECDHWithPBKDF2WithDefaults
public void ECDHWithPBKDF2WithDefaults() throws Exception- Throws:
Exception
-
DiffieHellmanWithConcatKDFWithDefaults
public void DiffieHellmanWithConcatKDFWithDefaults() throws Exception- Throws:
Exception
-
DiffieHellmanWithLegacyKDFWithDefaults
public void DiffieHellmanWithLegacyKDFWithDefaults() throws Exception- Throws:
Exception
-
-