index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto/examples/BasicEncryptionExampleTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.kms.KMSTestFixtures;
import org.junit.Test;
public class BasicEncryptionExampleTest {
@Test
public void testEncryptAndDecrypt() {
... | 700 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto/examples/BasicMultiRegionKeyEncryptionExampleTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.kms.KMSTestFixtures;
import org.junit.Test;
public class BasicMultiRegionKeyEncryptionExampleTest {
@Test
public void testEncryptA... | 701 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto/examples/SetCommitmentPolicyExampleTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.kms.KMSTestFixtures;
import org.junit.Test;
public class SetCommitmentPolicyExampleTest {
@Test
public void testEncryptAndDecrypt(... | 702 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/crypto/examples/DiscoveryDecryptionExampleTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.kms.KMSTestFixtures;
import org.junit.Test;
public class DiscoveryDecryptionExampleTest {
@Test
public void testEncryptAndDecrypt(... | 703 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/DefaultCryptoMaterialsManagerTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.multi.MultipleProviderFactory.buildMultiProvider;
import static java.util.Collections.singletonMap;
import static org.junit.Assert.... | 704 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/FastTestsOnlySuite.java | package com.amazonaws.encryptionsdk;
import java.util.concurrent.TimeUnit;
import org.junit.ClassRule;
import org.junit.experimental.categories.Categories;
import org.junit.rules.TestRule;
import org.junit.rules.Timeout;
import org.junit.runner.Description;
import org.junit.runner.RunWith;
import org.junit.runner.Runn... | 705 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/AwsCryptoTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.FastTestsOnlySuite.isFastTestSuiteActive;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static java.util... | 706 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/TestUtils.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static java.lang.String.format;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import com.amazonaws.encryptionsdk.jce.JceMasterKey;
... | 707 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/IntegrationTestSuite.java | package com.amazonaws.encryptionsdk;
import com.amazonaws.encryptionsdk.kms.KMSProviderBuilderIntegrationTests;
import com.amazonaws.encryptionsdk.kms.MaxEncryptedDataKeysIntegrationTest;
import com.amazonaws.encryptionsdk.kms.XCompatKmsDecryptTest;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
@Ru... | 708 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/SlowTestCategory.java | package com.amazonaws.encryptionsdk;
/**
* JUnit category marking tests to be excluded from the FastTestsOnlySuite. Usage: <code>
* @Category(SlowTestCategory.class)
* @Test
* public void mySlowTest() {
* // encrypt a couple terabytes of test data
* }
* </code>
*/
public interface SlowT... | 709 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/CryptoAlgorithmTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import com.amaz... | 710 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/XCompatDecryptTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static org.junit.Assert.assertArrayEquals;
import com.amazonaws.encryptionsdk.internal.Utils;
import com.amazonaws.encryptionsdk.jce.JceMasterKey;
import com.amazona... | 711 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/AllTestsSuite.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import com.amazonaws.crypto.examples.BasicEncryptionExampleTest;
import com.amazonaws.crypto.examples.BasicMultiRegionKeyEncryptionExampleTest;
import com.amazonaws.crypto.e... | 712 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/CryptoInputStreamTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.TestUtils.insecureRandomBytes;
import static com.amazonaws.encryp... | 713 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/CryptoOutputStreamTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.AwsCrypto.getDefaultFrameSize;
import static com.amazonaws.encryptionsdk.FastTestsOnlySuite.isFastTestSuiteActive;
import static co... | 714 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/RecordingMaterialsManager.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import com.amazonaws.encryptionsdk.model.DecryptionMaterials;
import com.amazonaws.encryptionsdk.model.DecryptionMaterialsRequest;
import com.amazonaws.encryptionsdk.model.E... | 715 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/DecryptionMethod.java | package com.amazonaws.encryptionsdk;
import com.amazonaws.encryptionsdk.internal.SignaturePolicy;
import com.amazonaws.encryptionsdk.internal.TestIOUtils;
import java.io.*;
enum DecryptionMethod {
OneShot {
@Override
public byte[] decryptMessage(
AwsCrypto crypto, MasterKeyProvider<?> masterKeyProvi... | 716 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/TestVectorRunner.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static java.lang.String.format;
import com.amazonaws.auth.DefaultAWSCredentialsProviderChain;
import com.amazonaws.encryptionsdk.internal.SignaturePolicy;
import com... | 717 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/CommitmentKATRunner.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertTrue;
import static ... | 718 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/ParsedCiphertextTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.*;
import static org.mockito.Mockito.spy;
import com.amazonaws.encryptionsd... | 719 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/MockKMSClient.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 720 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/KMSProviderBuilderMockTests.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.multi.MultipleProviderFactory.buildMultiProvider;
import static java.util.Collections.singletonList;
import static org.junit.As... | 721 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/KMSTestFixtures.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
public final class KMSTestFixtures {
private KMSTestFixtures() {
throw new UnsupportedOperationException(
"This class exists to hold static constants and c... | 722 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/DiscoveryFilterTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertNotNull;
import java.util.Arrays;
import java.util.Collections;
i... | 723 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/MaxEncryptedDataKeysIntegrationTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.TestUtils;
impor... | 724 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/AwsKmsMrkAwareMasterKeyTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static org.junit.Assert.*;
import static org.junit.Assert.assertTrue;
import sta... | 725 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/XCompatKmsDecryptTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static org.junit.Assert.assertArrayEquals;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.CryptoResult;
import com.fasterxml.ja... | 726 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/KMSProviderBuilderIntegrationTests.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import stati... | 727 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/AwsKmsMrkAwareMasterKeyProviderTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.internal.AwsKmsCmkArnInfo.parseInfoFromKeyArn;
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.any... | 728 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/KmsMasterKeyTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static org.jun... | 729 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kms/KmsMasterKeyProviderTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kms;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static org.jun... | 730 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/jce/JceMasterKeyTest.java | package com.amazonaws.encryptionsdk.jce;
import java.security.*;
import javax.crypto.SecretKey;
import javax.crypto.spec.SecretKeySpec;
import org.junit.Test;
public class JceMasterKeyTest {
private static final SecretKey SECRET_KEY = new SecretKeySpec(new byte[1], "AES");
private static final PrivateKey PRIVATE... | 731 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/jce/KeyStoreProviderTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 732 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/MockKmsClient.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 733 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/KMSProviderBuilderMockTests.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.multi.MultipleProviderFactory.buildMultiProvider;
import static java.util.Collections.singletonList;
import static org.jun... | 734 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/MaxEncryptedDataKeysIntegrationTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static org.junit.Assert.assertArrayEquals;
import static org.mockito.Mockito.*;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptio... | 735 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/AwsKmsMrkAwareMasterKeyTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import com... | 736 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/XCompatKmsDecryptTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static org.junit.Assert.assertArrayEquals;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.CryptoResult;
import com.fasterx... | 737 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/KMSProviderBuilderIntegrationTests.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.any;
import static or... | 738 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/ProxyKmsClient.java | package com.amazonaws.encryptionsdk.kmssdkv2;
import software.amazon.awssdk.awscore.exception.AwsServiceException;
import software.amazon.awssdk.core.exception.SdkClientException;
import software.amazon.awssdk.services.kms.KmsClient;
import software.amazon.awssdk.services.kms.model.DecryptRequest;
import software.amaz... | 739 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/ProxyCredentialsProvider.java | package com.amazonaws.encryptionsdk.kmssdkv2;
import software.amazon.awssdk.auth.credentials.AwsCredentials;
import software.amazon.awssdk.auth.credentials.AwsCredentialsProvider;
class ProxyCredentialsProvider implements AwsCredentialsProvider {
private final AwsCredentialsProvider proxiedProvider_;
ProxyCreden... | 740 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/AwsKmsMrkAwareMasterKeyProviderTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.internal.AwsKmsCmkArnInfo.parseInfoFromKeyArn;
import static org.junit.Assert.*;
import static org.mockito.ArgumentMatcher... | 741 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/KmsMasterKeyTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static or... | 742 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/kmssdkv2/KmsMasterKeyProviderTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.kmssdkv2;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static or... | 743 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/multi/MultipleMasterKeyTest.java | package com.amazonaws.encryptionsdk.multi;
import static com.amazonaws.encryptionsdk.internal.RandomBytesGenerator.generate;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.CryptoResult;
imp... | 744 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/RandomBytesGenerator.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 745 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/StaticMasterKey.java | package com.amazonaws.encryptionsdk.internal;
import com.amazonaws.encryptionsdk.CryptoAlgorithm;
import com.amazonaws.encryptionsdk.DataKey;
import com.amazonaws.encryptionsdk.EncryptedDataKey;
import com.amazonaws.encryptionsdk.MasterKey;
import com.amazonaws.encryptionsdk.exception.AwsCryptoException;
import com.am... | 746 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/VersionInfoTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class VersionInfoTest {
@Test
public void basic_use() {
final String userAgent =... | 747 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/CommittedKeyTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static com.amazonaws.encryptionsdk.TestUtils.insecureRandomBytes;
import static org.junit.A... | 748 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/UtilsTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.A... | 749 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/PrimitivesParserTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 750 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/TestIOUtils.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 751 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/FrameEncryptionHandlerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 752 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/FrameEncryptionHandlerVeryLongTest.java | package com.amazonaws.encryptionsdk.internal;
import static org.junit.Assert.fail;
import com.amazonaws.encryptionsdk.CryptoAlgorithm;
import com.amazonaws.encryptionsdk.model.CipherFrameHeaders;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;
import javax.crypto.spec.SecretKeySpec;
im... | 753 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/HmacKeyDerivationFunctionTest.java | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 754 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/AwsKmsCmkArnInfoTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import... | 755 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/CipherHandlerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 756 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/BlockDecryptionHandlerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 757 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/EncryptionHandlerTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static java.util.Collections.emptyList;
import static org.junit.Assert.assertArrayEquals;
i... | 758 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/FrameDecryptionHandlerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 759 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/EncContextSerializerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 760 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/BlockEncryptionHandlerTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 761 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/DecryptionHandlerTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.internal;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
imp... | 762 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/internal/TrailingSignatureAlgorithmTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 763 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/CiphertextHeadersTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.model;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
import... | 764 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/EncryptionMaterialsRequestTest.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import com.amazonaws.encryptionsdk.CommitmentPolicy;
import org.junit.Test;... | 765 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/DecryptionMaterialsRequestTest.java | /*
* Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 766 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/KeyBlobTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 767 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/CipherFrameHeadersTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 768 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/CipherBlockHeadersTest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 769 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/model/ByteFormatCheckValues.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 770 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/LocalCryptoMaterialsCacheTest.java | package com.amazonaws.encryptionsdk.caching;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import com.amazonaws.encryptionsdk.caching.CryptoMaterialsCache.UsageStat... | 771 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/CacheIdentifierTests.java | package com.amazonaws.encryptionsdk.caching;
import static com.amazonaws.encryptionsdk.CryptoAlgorithm.ALG_AES_128_GCM_IV12_TAG16_HKDF_SHA256;
import static com.amazonaws.encryptionsdk.CryptoAlgorithm.ALG_AES_256_GCM_IV12_TAG16_HKDF_SHA384_ECDSA_P384;
import static java.nio.charset.StandardCharsets.UTF_8;
import stati... | 772 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/CacheTestFixtures.java | package com.amazonaws.encryptionsdk.caching;
import com.amazonaws.encryptionsdk.CommitmentPolicy;
import com.amazonaws.encryptionsdk.DataKey;
import com.amazonaws.encryptionsdk.DefaultCryptoMaterialsManager;
import com.amazonaws.encryptionsdk.MasterKey;
import com.amazonaws.encryptionsdk.TestUtils;
import com.amazonaw... | 773 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/NullCryptoMaterialsCacheTest.java | package com.amazonaws.encryptionsdk.caching;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import com.amazonaws.encryptionsdk.model.DecryptionMaterials;
import com.amazonaws.encryptionsdk.model.DecryptionMaterialsRequest;
import com... | 774 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/LocalCryptoMaterialsCacheThreadStormTest.java | package com.amazonaws.encryptionsdk.caching;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
import com.amazonaws.encryptionsdk.DataKey;
import com.amazonaws.encryptionsdk.caching.CryptoMaterialsCache.UsageStats;
import com.amazonaws.encryptionsdk.model.DecryptionMaterials;
import co... | 775 |
0 | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk | Create_ds/aws-encryption-sdk-java/src/test/java/com/amazonaws/encryptionsdk/caching/CachingCryptoMaterialsManagerTest.java | package com.amazonaws.encryptionsdk.caching;
import static com.amazonaws.encryptionsdk.TestUtils.assertThrows;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import static org.mockito.ArgumentMatchers.any;
import static org.mocki... | 776 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/FileStreamingExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.security.SecureRandom;
import java.util.Collections;
import java.u... | 777 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/BasicMultiRegionKeyEncryptionExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.CommitmentPolicy;
import com.amazonaws.encryptionsdk.CryptoResult;
import com.amazonaws.en... | 778 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/SetCommitmentPolicyExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 779 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/EscrowedEncryptExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.security.GeneralSec... | 780 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/SetEncryptionAlgorithmExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 781 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/MultipleCmkEncryptExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 782 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/BasicEncryptionExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 783 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/DiscoveryMultiRegionDecryptionExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import com.amazonaws.encryptionsdk.AwsCrypto;
import com.amazonaws.encryptionsdk.CommitmentPolicy;
import com.amazonaws.encryptionsdk.CryptoResult;
import com.amazonaws.en... | 784 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/SimpleDataKeyCachingExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import com.amazonaws.encryptionsdk.Aws... | 785 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/RestrictRegionExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 786 |
0 | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto | Create_ds/aws-encryption-sdk-java/src/examples/java/com/amazonaws/crypto/examples/DiscoveryDecryptionExample.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.crypto.examples;
import java.nio.charset.StandardCharsets;
import java.util.Arrays;
import java.util.Collections;
import java.util.Map;
import com.amazonaws.encryptionsdk.AwsCrypto;
impor... | 787 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/CryptoOutputStream.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 788 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/CryptoMaterialsManager.java | package com.amazonaws.encryptionsdk;
import com.amazonaws.encryptionsdk.model.DecryptionMaterials;
import com.amazonaws.encryptionsdk.model.DecryptionMaterialsRequest;
import com.amazonaws.encryptionsdk.model.EncryptionMaterials;
import com.amazonaws.encryptionsdk.model.EncryptionMaterialsRequest;
/**
* The crypto m... | 789 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/MasterKey.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 790 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/DataKey.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 791 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/ParsedCiphertext.java | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 792 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/MasterKeyProvider.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 793 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/CryptoInputStream.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 794 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/CryptoResult.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 795 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/MasterKeyRequest.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 796 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/DefaultCryptoMaterialsManager.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import static com.amazonaws.encryptionsdk.internal.Utils.assertNonNull;
import com.amazonaws.encryptionsdk.exception.AwsCryptoException;
import com.amazonaws.encryptionsdk.... | 797 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/EncryptedDataKey.java | /*
* Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except
* in compliance with the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 798 |
0 | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws | Create_ds/aws-encryption-sdk-java/src/main/java/com/amazonaws/encryptionsdk/AwsCrypto.java | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazonaws.encryptionsdk;
import com.amazonaws.encryptionsdk.exception.AwsCryptoException;
import com.amazonaws.encryptionsdk.exception.BadCiphertextException;
import com.amazonaws.encryptionsdk.inte... | 799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.