KeySpec
public class XECPrivateKeySpec extends Object implements KeySpec
Constructor | Description |
---|---|
XECPrivateKeySpec |
Construct a private key spec using the supplied parameters and encoded scalar value. |
Modifier and Type | Method | Description |
---|---|---|
AlgorithmParameterSpec |
getParams() |
Get the algorithm parameters that define the curve and other settings. |
byte[] |
getScalar() |
Get the scalar value encoded as an unpruned byte array. |
public XECPrivateKeySpec(AlgorithmParameterSpec params, byte[] scalar)
params
- the algorithm parametersscalar
- the unpruned encoded scalar value. This array is copied to protect against subsequent modification.NullPointerException
- if params
or scalar
is null.public AlgorithmParameterSpec getParams()
public byte[] getScalar()
© 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/XECPrivateKeySpec.html