Top Description Fields Methods
java.security

public Interface AsymmetricKey

extends Key
Known Direct Subinterfaces
java.security.PrivateKey, java.security.PublicKey
Imports
java.security.spec.AlgorithmParameterSpec

An asymmetric key, which can be either a public key or a private key. This interface contains methods that are common to either a public key or a private key.
Since
22

Field Summary

Inherited from java.security.Key:
serialVersionUID

Method Summary

Modifier and TypeMethod and Description
public default AlgorithmParameterSpec

Returns:

the associated parameters, may be null
getParams
()

Returns the parameters associated with this key.

Inherited from java.security.Key:
getAlgorithmgetEncodedgetFormat

Method Detail

getParamsback to summary
public default AlgorithmParameterSpec getParams()

Returns the parameters associated with this key. The parameters are optional and may be either explicitly specified or implicitly created during key pair generation.

Implementation Specification

The default implementation returns null.

Returns:AlgorithmParameterSpec

the associated parameters, may be null