BCDSTU4145PublicKey (Bouncy Castle Library 1.52 API Specification)
Date: 2015-03-01

org.bouncycastle.jcajce.provider.asymmetric.dstu

## Class BCDSTU4145PublicKey

- java.lang.Object
- - org.bouncycastle.jcajce.provider.asymmetric.dstu.BCDSTU4145PublicKey

- All Implemented Interfaces:
    java.io.Serializable, java.security.Key, java.security.PublicKey, ECKey, ECPointEncoder, ECPublicKey

      public class BCDSTU4145PublicKey
      extends java.lang.Object
      implements java.security.interfaces.ECPublicKey, ECPublicKey, ECPointEncoder

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BCDSTU4145PublicKey(BCDSTU4145PublicKey key)`
    `BCDSTU4145PublicKey(java.security.interfaces.ECPublicKey key)`
    `BCDSTU4145PublicKey(java.security.spec.ECPublicKeySpec spec)`
    `BCDSTU4145PublicKey(ECPublicKeySpec spec)`
    `BCDSTU4145PublicKey(java.lang.String algorithm, ECPublicKeyParameters params)`
    `BCDSTU4145PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, java.security.spec.ECParameterSpec spec)`
    `BCDSTU4145PublicKey(java.lang.String algorithm, ECPublicKeyParameters params, ECParameterSpec spec)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ECPoint` | `engineGetQ()`
    `boolean` | `equals(java.lang.Object o)`
    `java.lang.String` | `getAlgorithm()`
    `byte[]` | `getEncoded()`
    `java.lang.String` | `getFormat()`
    `ECParameterSpec` | `getParameters()` return a parameter specification representing the EC domain parameters for the key.
    `java.security.spec.ECParameterSpec` | `getParams()`
    `ECPoint` | `getQ()` return the public point Q
    `byte[]` | `getSbox()`
    `java.security.spec.ECPoint` | `getW()`
    `int` | `hashCode()`
    `void` | `setPointFormat(java.lang.String style)` Set the formatting for encoding of points.
    `java.lang.String` | `toString()`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(BCDSTU4145PublicKey key)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(java.security.spec.ECPublicKeySpec spec)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(ECPublicKeySpec spec)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(java.lang.String algorithm,
                             ECPublicKeyParameters params,
                             java.security.spec.ECParameterSpec spec)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(java.lang.String algorithm,
                             ECPublicKeyParameters params,
                             ECParameterSpec spec)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(java.lang.String algorithm,
                             ECPublicKeyParameters params)

    - #### BCDSTU4145PublicKey

          public BCDSTU4145PublicKey(java.security.interfaces.ECPublicKey key)

  - ### Method Detail

    - #### getSbox

          public byte[] getSbox()

    - #### getAlgorithm

          public java.lang.String getAlgorithm()

      Specified by:
        `getAlgorithm` in interface `java.security.Key`

    - #### getFormat

          public java.lang.String getFormat()

      Specified by:
        `getFormat` in interface `java.security.Key`

    - #### getEncoded

          public byte[] getEncoded()

      Specified by:
        `getEncoded` in interface `java.security.Key`

    - #### getParams

          public java.security.spec.ECParameterSpec getParams()

    - #### getParameters

          public ECParameterSpec getParameters()

      Description copied from interface: `ECKey`
      return a parameter specification representing the EC domain parameters for the key.
      Specified by:
        `getParameters` in interface `ECKey`

    - #### getW

          public java.security.spec.ECPoint getW()

    - #### getQ

          public ECPoint getQ()

      Description copied from interface: `ECPublicKey`
      return the public point Q
      Specified by:
        `getQ` in interface `ECPublicKey`

    - #### engineGetQ

          public ECPoint engineGetQ()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`

    - #### setPointFormat

          public void setPointFormat(java.lang.String style)

      Description copied from interface: `ECPointEncoder`
      Set the formatting for encoding of points. If the String "UNCOMPRESSED" is passed in point compression will not be used. If the String "COMPRESSED" is passed point compression will be used. The default is "UNCOMPRESSED".
      Specified by:
        `setPointFormat` in interface `ECPointEncoder`
      Parameters:
        `style` - the style to use.

    - #### equals

          public boolean equals(java.lang.Object o)

      Overrides:
        `equals` in class `java.lang.Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `java.lang.Object`