Class LeafNode
java.lang.Object
org.bouncycastle.mls.TreeKEM.LeafNode
- All Implemented Interfaces:
MLSInputStream.Readable, MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionLeafNode()LeafNode(MLSInputStream stream) LeafNode(MlsCipherSuite suite, byte[] encryption_key, byte[] signature_key, Credential credential, Capabilities capabilities, LifeTime lifeTime, List<Extension> extensions, byte[] sigSk) -
Method Summary
Modifier and TypeMethodDescriptioncopy(byte[] encKeyIn) copyWithOptions(byte[] encKeyIn, Group.LeafNodeOptions options) booleanforCommit(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, byte[] parentHash, Group.LeafNodeOptions options, byte[] sigPriv) forUpdate(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, Group.LeafNodeOptions options, byte[] sigPriv) byte[]byte[]getSuite()byte[]toBeSigned(byte[] groupId, int leafIndex) booleanverify(MlsCipherSuite suite, byte[] tbs) booleanverifyExtensionSupport(List<Extension> extensions) booleanvoidwriteTo(MLSOutputStream stream)
-
Constructor Details
-
LeafNode
public LeafNode(MlsCipherSuite suite, byte[] encryption_key, byte[] signature_key, Credential credential, Capabilities capabilities, LifeTime lifeTime, List<Extension> extensions, byte[] sigSk) throws Exception - Throws:
Exception
-
LeafNode
public LeafNode() -
LeafNode
- Throws:
IOException
-
-
Method Details
-
getCapabilities
-
getCredentialType
-
getSuite
-
getLifeTime
-
getEncryptionKey
public byte[] getEncryptionKey() -
getSignatureKey
public byte[] getSignatureKey() -
getExtensions
-
writeTo
- Specified by:
writeToin interfaceMLSOutputStream.Writable- Throws:
IOException
-
getSource
-
getCredential
-
toBeSigned
- Throws:
IOException
-
verifyExtensionSupport
-
verifyLifetime
public boolean verifyLifetime() -
verify
- Throws:
IOException
-
forCommit
public LeafNode forCommit(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, byte[] parentHash, Group.LeafNodeOptions options, byte[] sigPriv) throws Exception - Throws:
Exception
-
forUpdate
public LeafNode forUpdate(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, Group.LeafNodeOptions options, byte[] sigPriv) throws Exception - Throws:
Exception
-
copyWithOptions
-
copy
-
equals
-