Class BCFaestPrivateKey

java.lang.Object
org.bouncycastle.pqc.jcajce.provider.faest.BCFaestPrivateKey
All Implemented Interfaces:
Serializable, AsymmetricKey, DEREncodablePREVIEW, Key, PrivateKey, Destroyable, FaestKey

public class BCFaestPrivateKey extends Object implements PrivateKey, FaestKey
See Also:
  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getAlgorithm

      public final String getAlgorithm()
      Specified by:
      getAlgorithm in interface Key
      Returns:
      name of the algorithm - upper-case form of the FAEST parameter-set name
    • getEncoded

      public byte[] getEncoded()
      Specified by:
      getEncoded in interface Key
    • getParams

      public AlgorithmParameterSpec getParams()
      Return the parameter set of this key as a java.security.spec.NamedParameterSpec, the form the JDK's own keys report through java.security.AsymmetricKey.getParams() from Java 22.
      Specified by:
      getParams in interface AsymmetricKey
      Returns:
      a NamedParameterSpec naming the parameter set on Java 11 and later, null otherwise.
    • getParameterSpec

      public FaestParameterSpec getParameterSpec()
      Description copied from interface: FaestKey
      Return the parameters for this key.
      Specified by:
      getParameterSpec in interface FaestKey
      Returns:
      a FaestParameterSpec
    • getFormat

      public String getFormat()
      Specified by:
      getFormat in interface Key