Interface XMSSMTPrivateKey
- 
- All Superinterfaces:
 javax.security.auth.Destroyable,java.security.Key,java.security.PrivateKey,java.io.Serializable,XMSSMTKey
- All Known Implementing Classes:
 BCXMSSMTPrivateKey
public interface XMSSMTPrivateKey extends XMSSMTKey, java.security.PrivateKey
Base interface for an XMSSMT private key 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XMSSMTPrivateKeyextractKeyShard(int usageCount)Return a key representing a shard of the key space that can be used usageCount times.longgetIndex()Return the index of the next signature.longgetUsagesRemaining()Return the number of usages left for the private key.- 
Methods inherited from interface org.bouncycastle.pqc.jcajce.interfaces.XMSSMTKey
getHeight, getLayers, getTreeDigest 
 - 
 
 - 
 
- 
- 
Method Detail
- 
getIndex
long getIndex()
Return the index of the next signature.- Returns:
 - the index number for the next signature.
 
 
- 
getUsagesRemaining
long getUsagesRemaining()
Return the number of usages left for the private key.- Returns:
 - the number of times the key can be used before it is exhausted.
 
 
- 
extractKeyShard
XMSSMTPrivateKey extractKeyShard(int usageCount)
Return a key representing a shard of the key space that can be used usageCount times.Note: this will use the range [index...index + usageCount) for the current key.
- Parameters:
 usageCount- the number of usages the key should have.- Returns:
 - a key based on the current key that can be used usageCount times.
 
 
 - 
 
 -