java.lang.Object
org.bouncycastle.crypto.params.AsymmetricKeyParameter
All Implemented Interfaces:
CipherParameters
Direct Known Subclasses:
MLKEMKeyParameters

public class AsymmetricKeyParameterextends Object implements CipherParameters
Parameter class for asymmetric key operations. Distinguishes between public and private key usage in cryptographic operations.
  • Field Details

    • privateKey

      boolean privateKey
      whether this is a private key
  • Constructor Details

    • AsymmetricKeyParameter

      public AsymmetricKeyParameter(boolean privateKey)
      Create a new asymmetric key parameter.
      Parameters:
      privateKey - true for private key, false for public key
  • Method Details

    • isPrivate

      public boolean isPrivate()
      Check if this is a private key.
      Returns:
      true if this is a private key