Package org.opensaml.xmlsec.keyinfo.impl
Class AgreementMethodTest
java.lang.Object
org.opensaml.core.testing.OpenSAMLInitBaseTestCase
org.opensaml.core.testing.XMLObjectBaseTestCase
org.opensaml.xmlsec.keyinfo.impl.AgreementMethodTest
public class AgreementMethodTest
extends org.opensaml.core.testing.XMLObjectBaseTestCase
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate KeyAgreementCredentialprivate Credentialprivate Credentialprivate Stringprivate CollectionCredentialResolverprivate LocalKeyInfoCredentialResolverFields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidprivate EncryptedTypemakeEncryptionMethodChild(KeyInfo keyinfo, String algorithm, Integer keySize, QName elementType) voidvoidvoidvoidprivate KeyInfovoidvoidvoidvoidprivate voidvalidateDerivedKey(Credential credential, String algorithmURI) Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElementMethods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
Field Details
-
resolver
-
credRecipientPrivateEC
-
credRecipientPublicEC
-
credKeyAgreementOriginatorEC
-
recipientLocalCredResolver
-
keyInfoFactory
-
expectedEncryptionAlgorithm
-
-
Constructor Details
-
AgreementMethodTest
public AgreementMethodTest()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
beforeMethod
- Throws:
Exception
-
ECDHWithConcatKDF_Success
- Throws:
Exception
-
agreementAlgorithmNotRegistered
- Throws:
Exception
-
agreementMethodNotGranndchildOfEncryptedType
- Throws:
Exception
-
missingEncryptionAlgorithm
- Throws:
Exception
-
unknownEncryptionAlgorithm
- Throws:
Exception
-
missingOriginatorKeyInfo
- Throws:
Exception
-
originatorCredResolutionFailedMissingKeyInfoData
- Throws:
Exception
-
missingRecipientKeyInfo
- Throws:
Exception
-
recipientCredResolutionFailedMissingKeyInfoData
- Throws:
Exception
-
recipientCredResolutionFailedAtCredentialResolver
- Throws:
Exception
-
recipientCredMissingPrivateKey
- Throws:
Exception
-
prepareAndValidateKeyInfo
@Nonnull private KeyInfo prepareAndValidateKeyInfo(KeyAgreementCredential cred) throws SecurityException - Throws:
SecurityException
-
makeEncryptionMethodChild
@Nonnull private EncryptedType makeEncryptionMethodChild(KeyInfo keyinfo, String algorithm, Integer keySize, QName elementType) -
validateDerivedKey
-