Package anbxj

Class Crypto_KeyPair

java.lang.Object
anbxj.Crypto_KeyPair

public class Crypto_KeyPair extends Object
Represents a public/private key pair.
  • 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.