public Observable<KeyBundle> createKeyAsync(String vaultBaseUrl, String keyName, JsonWebKeyType kty, Integer keySize, List<JsonWebKeyOperation> keyOps, KeyAttributes keyAttributes, Map<String, String> tags, JsonWebKeyCurveName curve) {
        return createKeyWithServiceResponseAsync(vaultBaseUrl, keyName, kty, keySize, keyOps, keyAttributes, tags, curve).map(new Func1<ServiceResponse<KeyBundle>, KeyBundle>() {
            @Override
            public KeyBundle call(ServiceResponse<KeyBundle> response) {
                return response.body();
            }
        });
    }
public Observable < KeyBundle > createKeyAsync ( String vaultBaseUrl , String keyName , JsonWebKeyType kty , Integer keySize , List < JsonWebKeyOperation > keyOps , KeyAttributes keyAttributes , Map < String , String > tags , JsonWebKeyCurveName curve ) { return createKeyWithServiceResponseAsync ( vaultBaseUrl , keyName , kty , keySize , keyOps , keyAttributes , tags , curve ) . map ( new Func1 < ServiceResponse < KeyBundle > , KeyBundle > ( ) { @ Override public KeyBundle call ( ServiceResponse < KeyBundle > response ) { return response . body ( ) ; } } ) ; }
Creates a new key, stores it, then returns key parameters and attributes to the client.
The create key operation can be used to create any key type in Azure Key Vault. If the named key already exists, Azure Key Vault creates a new version of the key. It requires the keys/create permission.

@param vaultBaseUrl The vault name, for example https://myvault.vault.azure.net.
@param keyName The name for the new key. The system will generate the version name for the new key.
@param kty The type of key to create. For valid values, see JsonWebKeyType. Possible values include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'
@param keySize The key size in bits. For example: 2048, 3072, or 4096 for RSA.
@param keyOps the List&lt;JsonWebKeyOperation&gt; value
@param keyAttributes the KeyAttributes value
@param tags Application specific metadata in the form of key-value pairs.
@param curve Elliptic curve name. For valid values, see JsonWebKeyCurveName. Possible values include: 'P-256', 'P-384', 'P-521', 'P-256K'
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the KeyBundle object