KeySpec
public final class EdECPrivateKeySpec extends Object implements KeySpec
Constructor | Description |
---|---|
EdECPrivateKeySpec |
Construct a private key spec using the supplied parameters and bit string. |
Modifier and Type | Method | Description |
---|---|---|
byte[] |
getBytes() |
Get the byte array representing the private key. |
NamedParameterSpec |
getParams() |
Get the algorithm parameters that define the curve and other settings. |
public EdECPrivateKeySpec(NamedParameterSpec params, byte[] bytes)
params
- the algorithm parameters.bytes
- the key as a byte array. This array is copied to protect against subsequent modification.NullPointerException
- if params
or bytes
is null.public NamedParameterSpec getParams()
public byte[] getBytes()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/security/spec/EdECPrivateKeySpec.html