KeyVaultPrivateKey Class

  • java.lang.Object
    • com.azure.security.keyvault.jca.KeyVaultPrivateKey

Implements

@Deprecated
public class KeyVaultPrivateKey
implements PrivateKey, SecretKey

Note

This class has been deprecated. Should not use this class outside of azure-security-keyvault-jca.jar. Move this class to implementation package.

KeyVault fake private which work when key less

Constructor Summary

Constructor Description
KeyVaultPrivateKey(String algorithm, String kid)

Builder for key vault private key

Method Summary

Modifier and Type Method and Description
String getAlgorithm()

Get the algorithm

byte[] getEncoded()

Get the encoded

String getFormat()

Get the format

String getKid()

Get the KeyId

void setAlgorithm(String algorithm)

Store key vault certificate algorithm

void setKid(String kid)

Store the KeyId

Methods inherited from java.lang.Object

Constructor Details

KeyVaultPrivateKey

public KeyVaultPrivateKey(String algorithm, String kid)

Builder for key vault private key

Parameters:

algorithm - algorithm
kid - The key id

Method Details

getAlgorithm

public String getAlgorithm()

Get the algorithm

Returns:

the algorithm

getEncoded

public byte[] getEncoded()

Get the encoded

Returns:

the encoded

getFormat

public String getFormat()

Get the format

Returns:

the format

getKid

public String getKid()

Get the KeyId

Returns:

the KeyId

setAlgorithm

public void setAlgorithm(String algorithm)

Store key vault certificate algorithm

Parameters:

algorithm - algorithm

setKid

public void setKid(String kid)

Store the KeyId

Parameters:

kid - the KeyId

Applies to