org.bouncycastle.pqc.crypto.ntru

## Class NTRUPublicKeyParameters

- java.lang.Object
- - org.bouncycastle.crypto.params.AsymmetricKeyParameter
  - - org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters
    - - org.bouncycastle.pqc.crypto.ntru.NTRUPublicKeyParameters

- All Implemented Interfaces:
    CipherParameters

      public class NTRUPublicKeyParameters
      extends NTRUKeyParameters

  NTRU public key parameter class.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NTRUPublicKeyParameters(NTRUParameters params, byte[] key)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `byte[]` | `getEncoded()` Get the encoding of public key.
    `byte[]` | `getPublicKey()` Get public key.

    - ### Methods inherited from class org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters

      `getParameters`

    - ### 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

    - #### NTRUPublicKeyParameters

          public NTRUPublicKeyParameters(NTRUParameters params,
                                         byte[] key)

  - ### Method Detail

    - #### getPublicKey

          public byte[] getPublicKey()

      Get public key.
      Returns:
        a byte array containing public key

    - #### getEncoded

          public byte[] getEncoded()

      Get the encoding of public key.
      Returns:
        a byte array containing public key encoding