Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sort-imports] update keyvault-keys with respect to sort-imports rule #19132

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { OperationOptions } from "@azure/core-http";
import * as crypto from "crypto";
import {
EncryptOptions,
EncryptResult,
AesCbcEncryptParameters,
DecryptOptions,
DecryptResult,
EncryptOptions,
EncryptResult,
JsonWebKey,
KeyWrapAlgorithm,
WrapKeyOptions,
WrapResult,
UnwrapKeyOptions,
UnwrapResult,
SignOptions,
SignResult,
UnwrapKeyOptions,
UnwrapResult,
VerifyOptions,
VerifyResult,
AesCbcEncryptParameters,
JsonWebKey
WrapKeyOptions,
WrapResult
} from "..";
import { AesCbcDecryptParameters } from "../cryptographyClientModels";
import {
CryptographyProvider,
CryptographyProviderOperation,
LocalCryptographyUnsupportedError
} from "./models";
import { AesCbcDecryptParameters } from "../cryptographyClientModels";
import { OperationOptions } from "@azure/core-http";

/**
* An AES cryptography provider supporting AES algorithms.
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-keys/src/cryptography/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
// Licensed under the MIT license.

import {
Verify,
createHash as cryptoCreateHash,
createVerify as cryptoCreateVerify,
Verify,
randomBytes as cryptoRandomBytes
} from "crypto";

Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/src/cryptography/models.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { OperationOptions } from "@azure/core-http";
import {
DecryptOptions,
DecryptParameters,
Expand All @@ -10,16 +9,17 @@ import {
EncryptParameters,
EncryptResult,
KeyWrapAlgorithm,
SignatureAlgorithm,
SignOptions,
SignResult,
SignatureAlgorithm,
UnwrapKeyOptions,
UnwrapResult,
VerifyOptions,
VerifyResult,
WrapKeyOptions,
WrapResult
} from "..";
import { OperationOptions } from "@azure/core-http";

export class LocalCryptographyUnsupportedError extends Error {}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
// Licensed under the MIT license.

import {
createPipelineFromOptions,
isTokenCredential,
TokenCredential,
signingPolicy
} from "@azure/core-http";
CryptographyClientOptions,
GetKeyOptions,
KeyVaultKey,
LATEST_API_VERSION
} from "../keysModels";
import { CryptographyProvider, CryptographyProviderOperation } from "./models";
import {
EncryptParameters,
DecryptOptions,
DecryptParameters,
DecryptResult,
EncryptOptions,
EncryptParameters,
EncryptResult,
KeyWrapAlgorithm,
WrapKeyOptions,
WrapResult,
SignOptions,
SignResult,
UnwrapKeyOptions,
VerifyOptions,
VerifyResult,
DecryptParameters,
DecryptOptions,
DecryptResult,
UnwrapKeyOptions,
SignOptions,
SignResult
WrapKeyOptions,
WrapResult
} from "../cryptographyClientModels";
import { SDK_VERSION } from "../constants";
import { UnwrapResult } from "../cryptographyClientModels";
import { KeyVaultClient } from "../generated";
import { parseKeyVaultKeyIdentifier } from "../identifier";
import {
CryptographyClientOptions,
GetKeyOptions,
KeyVaultKey,
LATEST_API_VERSION
} from "../keysModels";
import { getKeyFromKeyBundle } from "../transformations";
import { createHash } from "./crypto";
import { CryptographyProvider, CryptographyProviderOperation } from "./models";
import { logger } from "../log";
TokenCredential,
createPipelineFromOptions,
isTokenCredential,
signingPolicy
} from "@azure/core-http";
import {
createTraceFunction,
TracedFunction,
challengeBasedAuthenticationPolicy
challengeBasedAuthenticationPolicy,
createTraceFunction
} from "../../../keyvault-common/src";
import { KeyVaultClient } from "../generated";
import { SDK_VERSION } from "../constants";
import { UnwrapResult } from "../cryptographyClientModels";
import { createHash } from "./crypto";
import { getKeyFromKeyBundle } from "../transformations";
import { logger } from "../log";
import { parseKeyVaultKeyIdentifier } from "../identifier";

const withTrace: TracedFunction = createTraceFunction(
"Azure.KeyVault.Keys.RemoteCryptographyProvider"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING } from "constants";
import { publicEncrypt } from "crypto";
import { createVerify } from "./crypto";
import {
JsonWebKey,
CryptographyProvider,
CryptographyProviderOperation,
LocalCryptographyUnsupportedError
} from "./models";
import {
DecryptOptions,
DecryptParameters,
DecryptResult,
EncryptOptions,
EncryptParameters,
EncryptResult,
JsonWebKey,
KeyWrapAlgorithm,
SignOptions,
SignResult,
SignatureAlgorithm,
UnwrapKeyOptions,
UnwrapResult,
VerifyOptions,
VerifyResult,
WrapKeyOptions,
DecryptParameters,
DecryptResult,
SignatureAlgorithm,
SignOptions,
SignResult,
UnwrapResult,
WrapResult
} from "..";
import { RSA_PKCS1_OAEP_PADDING, RSA_PKCS1_PADDING } from "constants";
import { convertJWKtoPEM } from "./conversions";
import {
CryptographyProvider,
CryptographyProviderOperation,
LocalCryptographyUnsupportedError
} from "./models";
import { createVerify } from "./crypto";
import { publicEncrypt } from "crypto";

/**
* An RSA cryptography provider supporting RSA algorithms.
Expand Down
54 changes: 27 additions & 27 deletions sdk/keyvault/keyvault-keys/src/cryptographyClient.ts
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.

import { OperationOptions, TokenCredential } from "@azure/core-http";
import {
JsonWebKey,
KeyVaultKey,
CryptographyClientOptions,
GetKeyOptions,
KeyOperation,
KnownKeyOperations
} from "./keysModels";
import {
EncryptionAlgorithm,
KeyWrapAlgorithm,
WrapResult,
UnwrapResult,
AesCbcEncryptParameters,
AesCbcEncryptionAlgorithm,
CryptographyClientKey,
DecryptOptions,
DecryptParameters,
DecryptResult,
SignatureAlgorithm,
SignResult,
VerifyResult,
EncryptResult,
EncryptOptions,
DecryptOptions,
WrapKeyOptions,
UnwrapKeyOptions,
EncryptParameters,
EncryptResult,
EncryptionAlgorithm,
KeyWrapAlgorithm,
SignOptions,
SignResult,
SignatureAlgorithm,
UnwrapKeyOptions,
UnwrapResult,
VerifyOptions,
DecryptParameters,
CryptographyClientKey,
AesCbcEncryptParameters,
AesCbcEncryptionAlgorithm
VerifyResult,
WrapKeyOptions,
WrapResult
} from "./cryptographyClientModels";
import { RemoteCryptographyProvider } from "./cryptography/remoteCryptographyProvider";
import { randomBytes } from "./cryptography/crypto";
import {
CryptographyClientOptions,
GetKeyOptions,
JsonWebKey,
KeyOperation,
KeyVaultKey,
KnownKeyOperations
} from "./keysModels";
import { CryptographyProvider, CryptographyProviderOperation } from "./cryptography/models";
import { RsaCryptographyProvider } from "./cryptography/rsaCryptographyProvider";
import { OperationOptions, TokenCredential } from "@azure/core-http";
import { AesCryptographyProvider } from "./cryptography/aesCryptographyProvider";
import { RemoteCryptographyProvider } from "./cryptography/remoteCryptographyProvider";
import { RsaCryptographyProvider } from "./cryptography/rsaCryptographyProvider";
import { createTraceFunction } from "../../keyvault-common/src";
import { randomBytes } from "./cryptography/crypto";

const withTrace = createTraceFunction("Azure.KeyVault.Keys.CryptographyClient");

Expand Down
9 changes: 4 additions & 5 deletions sdk/keyvault/keyvault-keys/src/cryptographyClientModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@
// Licensed under the MIT license.

import { CryptographyOptions, KeyVaultKey } from "./keysModels";

import {
JsonWebKeyEncryptionAlgorithm as EncryptionAlgorithm,
JsonWebKey,
JsonWebKeyCurveName as KeyCurveName,
KnownJsonWebKeyCurveName as KnownKeyCurveNames,
JsonWebKeyEncryptionAlgorithm as EncryptionAlgorithm,
KnownJsonWebKeyEncryptionAlgorithm as KnownEncryptionAlgorithms,
JsonWebKeySignatureAlgorithm as SignatureAlgorithm,
KnownJsonWebKeySignatureAlgorithm as KnownSignatureAlgorithms
KnownJsonWebKeyCurveName as KnownKeyCurveNames,
KnownJsonWebKeySignatureAlgorithm as KnownSignatureAlgorithms,
JsonWebKeySignatureAlgorithm as SignatureAlgorithm
} from "./generated/models";

export {
Expand Down
Loading