Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#constants) \| [Inherited Constants](https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#inhconstants) \| [Methods](https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#inhmethods)

# DSAPublicKey

` public interface DSAPublicKey `   
` implements https://developer.android.com/reference/java/security/interfaces/DSAKey, https://developer.android.com/reference/java/security/PublicKey `

|---|
| java.security.interfaces.DSAPublicKey |

<br />

*** ** * ** ***

The interface to a DSA public key. DSA (Digital Signature Algorithm) is defined in NIST's FIPS-186.
**See also:**

- `https://developer.android.com/reference/java/security/Key`
- `https://developer.android.com/reference/java/security/Signature`
- `https://developer.android.com/reference/java/security/interfaces/DSAKey`
- `https://developer.android.com/reference/java/security/interfaces/DSAPrivateKey`

## Summary

| ### Constants ||
|---|---|
| `long` | `https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#serialVersionUID` *This constant was deprecated in API level 35. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.* |

### Inherited constants

From interface `https://developer.android.com/reference/java/security/PublicKey` `long` `https://developer.android.com/reference/java/security/PublicKey#serialVersionUID`

*This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.*
From interface `https://developer.android.com/reference/java/security/Key` `long` `https://developer.android.com/reference/java/security/Key#serialVersionUID`

*This constant was deprecated in API level 34. A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.*

| ### Public methods ||
|---|---|
| ` abstract https://developer.android.com/reference/java/math/BigInteger` | ` https://developer.android.com/reference/java/security/interfaces/DSAPublicKey#getY()() ` Returns the value of the public key, `y`. |

### Inherited methods

From interface ` https://developer.android.com/reference/java/security/interfaces/DSAKey ` ` abstract https://developer.android.com/reference/java/security/interfaces/DSAParams` ` https://developer.android.com/reference/java/security/interfaces/DSAKey#getParams()() `

Returns the DSA-specific key parameters.
From interface ` https://developer.android.com/reference/java/security/Key ` ` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/security/Key#getAlgorithm()() `

Returns the standard algorithm name for this key.
` abstract byte[]` ` https://developer.android.com/reference/java/security/Key#getEncoded()() `

Returns the key in its primary encoding format, or null if this key does not support encoding.
` abstract https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/security/Key#getFormat()() `

Returns the name of the primary encoding format of this key, or null if this key does not support encoding.

## Constants

### serialVersionUID

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level 35](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final long serialVersionUID
```

<br />

**This constant was deprecated in API level 35.**   

A `serialVersionUID` field in an interface is ineffectual. Do not use; no replacement.

The class fingerprint that is set to indicate serialization compatibility with a previous version of the class.

<br />

Constant Value: 1234526332779022332 (0x1121eb28ab28c7fc)

## Public methods

### getY

Added in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract BigInteger getY ()
```

Returns the value of the public key, `y`.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/math/BigInteger` | the value of the public key, `y`. <br /> |