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 Details

  • Constructor Details

    • AgreementMethodTest

      public AgreementMethodTest()
  • Method Details

    • beforeClass

      @BeforeClass public void beforeClass() throws Exception
      Throws:
      Exception
    • beforeMethod

      @BeforeMethod public void beforeMethod() throws Exception
      Throws:
      Exception
    • ECDHWithConcatKDF_Success

      public void ECDHWithConcatKDF_Success() throws Exception
      Throws:
      Exception
    • agreementAlgorithmNotRegistered

      public void agreementAlgorithmNotRegistered() throws Exception
      Throws:
      Exception
    • agreementMethodNotGranndchildOfEncryptedType

      public void agreementMethodNotGranndchildOfEncryptedType() throws Exception
      Throws:
      Exception
    • missingEncryptionAlgorithm

      public void missingEncryptionAlgorithm() throws Exception
      Throws:
      Exception
    • unknownEncryptionAlgorithm

      public void unknownEncryptionAlgorithm() throws Exception
      Throws:
      Exception
    • missingOriginatorKeyInfo

      public void missingOriginatorKeyInfo() throws Exception
      Throws:
      Exception
    • originatorCredResolutionFailedMissingKeyInfoData

      public void originatorCredResolutionFailedMissingKeyInfoData() throws Exception
      Throws:
      Exception
    • missingRecipientKeyInfo

      public void missingRecipientKeyInfo() throws Exception
      Throws:
      Exception
    • recipientCredResolutionFailedMissingKeyInfoData

      public void recipientCredResolutionFailedMissingKeyInfoData() throws Exception
      Throws:
      Exception
    • recipientCredResolutionFailedAtCredentialResolver

      public void recipientCredResolutionFailedAtCredentialResolver() throws Exception
      Throws:
      Exception
    • recipientCredMissingPrivateKey

      public void recipientCredMissingPrivateKey() throws Exception
      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

      private void validateDerivedKey(@Nonnull Credential credential, @Nonnull String algorithmURI)