ECPrivateKey
, and they are intended for use
with algorithms based on RFC 8032 such as the EdDSA Signature
algorithm.
An Edwards-Curve private key is a bit string. This interface only supports bit string lengths that are a multiple of 8, and the key is represented using a byte array.
Modifier and Type | Method and Description |
---|---|
public Optional | Returns: anOptional containing the private key byte array.
If the key is not available, then an empty Optional .Get a copy of the byte array representing the private key. |
public default NamedParameterSpec | Returns: the associated parameters, may benull Overrides default java. Implements java. Returns the parameters associated with this key. |
getBytes | back to summary |
---|---|
public Optional Get a copy of the byte array representing the private key. This method
may return an empty
|
getParams | back to summary |
---|---|
public default NamedParameterSpec getParams() Overrides default java. Implements java. Doc from java. 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
|