Package anbxj

# Class Crypto_KeyPair

java.lang.Object
anbxj.Crypto_KeyPair

public class Crypto_KeyPair extends Object
Represents a public/private key pair.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Crypto_KeyPair(String keyAlgorithm, int keySize)`
  Constructs a Crypto_KeyPair with the specified key algorithm and size.
  `Crypto_KeyPair(String keyAlgorithm, int keySize, String provider)`
  Constructs a Crypto_KeyPair with the specified key algorithm, size and provider.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected PrivateKey`
  `getPrivateKey()`
  Gets the private key in the key pair.
  `PublicKey`
  `getPublicKey()`
  Gets the public key in the key pair.

  ### Methods inherited from class java.lang.Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Crypto_KeyPair

    public Crypto_KeyPair(String keyAlgorithm, int keySize)
    Constructs a Crypto_KeyPair with the specified key algorithm and size.
    Parameters:
      `keyAlgorithm` - The key algorithm.
      `keySize` - The key size.

  - ### Crypto_KeyPair

    public Crypto_KeyPair(String keyAlgorithm, int keySize, String provider)
    Constructs a Crypto_KeyPair with the specified key algorithm, size and provider.
    Parameters:
      `keyAlgorithm` - The key algorithm.
      `keySize` - The key size.
      `provider` - The security provider.

- ## Method Details

  - ### getPublicKey

    public PublicKey getPublicKey()
    Gets the public key in the key pair.
    Returns:
      The public key.

  - ### getPrivateKey

    protected PrivateKey getPrivateKey()
    Gets the private key in the key pair.
    Returns:
      The private key.