Package org.bouncycastle.mls.codec
Class PreSharedKeyID
java.lang.Object
org.bouncycastle.mls.codec.PreSharedKeyID
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
public class PreSharedKeyID
extends Object
implements MLSInputStream.Readable, MLSOutputStream.Writable
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static PreSharedKeyID
external
(byte[] externalPSKID, byte[] pskNonce) static PreSharedKeyID
resumption
(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch, byte[] pskNonce) void
writeTo
(MLSOutputStream stream)
-
Field Details
-
pskType
-
external
-
resumption
-
pskNonce
public final byte[] pskNonce
-
-
Constructor Details
-
PreSharedKeyID
- Throws:
IOException
-
-
Method Details
-
external
-
resumption
public static PreSharedKeyID resumption(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch, byte[] pskNonce) -
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-
equals
-