public class BCXMSSMTPrivateKey extends Object implements PrivateKey, XMSSMTPrivateKey
Constructor and Description |
---|
BCXMSSMTPrivateKey(ASN1ObjectIdentifier treeDigest,
XMSSMTPrivateKeyParameters keyParams) |
BCXMSSMTPrivateKey(PrivateKeyInfo keyInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
XMSSMTPrivateKey |
extractKeyShard(int usageCount)
Return a key representing a shard of the key space that can be used usageCount times.
|
String |
getAlgorithm() |
byte[] |
getEncoded() |
String |
getFormat() |
int |
getHeight() |
long |
getIndex()
Return the index of the next signature.
|
int |
getLayers() |
String |
getTreeDigest() |
long |
getUsagesRemaining()
Return the number of usages left for the private key.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
destroy, isDestroyed
public BCXMSSMTPrivateKey(ASN1ObjectIdentifier treeDigest, XMSSMTPrivateKeyParameters keyParams)
public BCXMSSMTPrivateKey(PrivateKeyInfo keyInfo) throws IOException
IOException
public long getIndex()
XMSSMTPrivateKey
getIndex
in interface XMSSMTPrivateKey
public long getUsagesRemaining()
XMSSMTPrivateKey
getUsagesRemaining
in interface XMSSMTPrivateKey
public XMSSMTPrivateKey extractKeyShard(int usageCount)
XMSSMTPrivateKey
Note: this will use the range [index...index + usageCount) for the current key.
extractKeyShard
in interface XMSSMTPrivateKey
usageCount
- the number of usages the key should have.public String getAlgorithm()
getAlgorithm
in interface Key
public byte[] getEncoded()
getEncoded
in interface Key
public String getTreeDigest()
getTreeDigest
in interface XMSSMTKey
Copyright © 2021 BouncyCastle.org. All rights reserved.