public class IndexedECPrivateKey extends AbstractIndexedKey<ECPrivateKey> implements ECPrivateKey
IndexedKey
. The underlying key is an ECPrivateKey
.serialVersionUID
Constructor and Description |
---|
IndexedECPrivateKey(ECPrivateKey key,
int index,
boolean active,
KeyType type)
Create the object with the given key, index, active state and type.
|
Modifier and Type | Method and Description |
---|---|
ECParameterSpec |
getParams()
Get the parameters of the key.
|
IndexedECPublicKey |
getPublicKey()
Get the public key of this private key.
|
BigInteger |
getS()
Get the S value of this private elliptic curve key.
|
equals, getAlgorithm, getEncoded, getFormat, getIndex, getKey, getKeyType, isActive, setActive
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAlgorithm, getEncoded, getFormat
destroy, isDestroyed
public IndexedECPrivateKey(ECPrivateKey key, int index, boolean active, KeyType type)
key
- the actual private elliptic curve keyindex
- the index of the keyactive
- the active state of the keytype
- the type of the keypublic ECParameterSpec getParams()
public IndexedECPublicKey getPublicKey()
public BigInteger getS()
getS
in interface ECPrivateKey
Copyright © 2021. All rights reserved.