Class KeyVaultPrivateKey

java.lang.Object
com.azure.security.keyvault.jca.KeyVaultPrivateKey
All Implemented Interfaces:
Serializable, Key, PrivateKey, SecretKey, Destroyable

@Deprecated public class KeyVaultPrivateKey extends Object implements PrivateKey, SecretKey
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
See Also:
  • Constructor Details

    • KeyVaultPrivateKey

      public KeyVaultPrivateKey(String algorithm, String kid)
      Deprecated.
      Builder for key vault private key
      Parameters:
      algorithm - algorithm
      kid - The key id
  • Method Details

    • getKid

      public String getKid()
      Deprecated.
      Get the KeyId
      Returns:
      the KeyId
    • setKid

      public void setKid(String kid)
      Deprecated.
      Store the KeyId
      Parameters:
      kid - the KeyId
    • setAlgorithm

      public void setAlgorithm(String algorithm)
      Deprecated.
      Store key vault certificate algorithm
      Parameters:
      algorithm - algorithm
    • getAlgorithm

      public String getAlgorithm()
      Deprecated.
      Get the algorithm
      Specified by:
      getAlgorithm in interface Key
      Returns:
      the algorithm
    • getFormat

      public String getFormat()
      Deprecated.
      Get the format
      Specified by:
      getFormat in interface Key
      Returns:
      the format
    • getEncoded

      public byte[] getEncoded()
      Deprecated.
      Get the encoded
      Specified by:
      getEncoded in interface Key
      Returns:
      the encoded