SPHINCSPublicKeyParameters (Bouncy Castle Library 1.85 API Specification)
Date: 2026-07-12

org.bouncycastle.pqc.crypto.sphincs

## Class SPHINCSPublicKeyParameters

- java.lang.Object
- - org.bouncycastle.crypto.params.AsymmetricKeyParameter
  - - org.bouncycastle.pqc.crypto.sphincs.SPHINCSKeyParameters
    - - org.bouncycastle.pqc.crypto.sphincs.SPHINCSPublicKeyParameters

- All Implemented Interfaces:
    CipherParameters

      public class SPHINCSPublicKeyParameters
      extends SPHINCSKeyParameters

- - ### Field Summary

    - ### Fields inherited from class org.bouncycastle.pqc.crypto.sphincs.SPHINCSKeyParameters

      `SHA3_256, SHA512_256`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `SPHINCSPublicKeyParameters(byte[] keyData)`
    `SPHINCSPublicKeyParameters(byte[] keyData, java.lang.String treeDigest)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getKeyData()`

    - ### Methods inherited from class org.bouncycastle.pqc.crypto.sphincs.SPHINCSKeyParameters

      `getTreeDigest`

    - ### Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter

      `isPrivate`

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

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

- - ### Constructor Detail

    - #### SPHINCSPublicKeyParameters

          public SPHINCSPublicKeyParameters(byte[] keyData)

    - #### SPHINCSPublicKeyParameters

          public SPHINCSPublicKeyParameters(byte[] keyData,
                                            java.lang.String treeDigest)

  - ### Method Detail

    - #### getKeyData

          public byte[] getKeyData()