Class KeyPairCredential

java.lang.Object
org.springframework.credhub.support.KeyPairCredential
Direct Known Subclasses:
RsaCredential, SshCredential

public class KeyPairCredential extends Object
Base class for credentials types that contain a public/private key pair.
Author:
Scott Frederick
  • Constructor Details

    • KeyPairCredential

      protected KeyPairCredential()
      Create an empty KeyPairCredential. Intended to be used internally for deserialization of responses.
    • KeyPairCredential

      protected KeyPairCredential(String publicKey, String privateKey)
      Create a KeyPairCredential from the provided parameters. Intended for internal use.
      Parameters:
      publicKey - the public key
      privateKey - the private key
  • Method Details

    • getPublicKey

      public String getPublicKey()
      Get the value of the public key.
      Returns:
      the public key
    • getPrivateKey

      public String getPrivateKey()
      Get the value of the private key.
      Returns:
      the private key