Top Inners Fields Constructors Methods
org.bouncycastle.mls.codec

public Class PreSharedKeyID

extends Object
implements Readable, Writable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.mls.codec.MLSOutputStream.Writable, org.bouncycastle.mls.codec.MLSInputStream.Readable
Imports
java.io.IOException, java.util.Arrays, org.bouncycastle.mls.crypto.Secret

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class

Field Summary

Modifier and TypeField and Description
public final PreSharedKeyID.External
public final byte[]
public final PSKType
public final PreSharedKeyID.Resumption

Constructor Summary

AccessConstructor and Description
pack-priv
PreSharedKeyID(PSKType pskType, PreSharedKeyID.External external, PreSharedKeyID.Resumption resumption, byte[] pskNonce)

public

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

public static PreSharedKeyID
external(byte[] externalPSKID, byte[] pskNonce)

public static PreSharedKeyID
resumption(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch, byte[] pskNonce)

public void
Inherited from java.lang.Object:
clonefinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

externalback to summary
public final PreSharedKeyID.External external
pskNonceback to summary
public final byte[] pskNonce
pskTypeback to summary
public final PSKType pskType
resumptionback to summary
public final PreSharedKeyID.Resumption resumption

Constructor Detail

PreSharedKeyIDback to summary
pack-priv PreSharedKeyID(PSKType pskType, PreSharedKeyID.External external, PreSharedKeyID.Resumption resumption, byte[] pskNonce)
PreSharedKeyIDback to summary
public PreSharedKeyID(MLSInputStream stream) throws IOException
Annotations
@SuppressWarnings:unused

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides java.lang.Object.equals.

Doc from java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.

The equals method implements an equivalence relation on non-null object references:

  • It is reflexive: for any non-null reference value x, x.equals(x) should return true.
  • It is symmetric: for any non-null reference values x and y, x.equals(y) should return true if and only if y.equals(x) returns true.
  • It is transitive: for any non-null reference values x, y, and z, if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.
  • It is consistent: for any non-null reference values x and y, multiple invocations of x.equals(y) consistently return true or consistently return false, provided no information used in equals comparisons on the objects is modified.
  • For any non-null reference value x, x.equals(null) should return false.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o:Object

the reference object with which to compare.

Returns:boolean

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
externalback to summary
public static PreSharedKeyID external(byte[] externalPSKID, byte[] pskNonce)
resumptionback to summary
public static PreSharedKeyID resumption(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch, byte[] pskNonce)
writeToback to summary
public void writeTo(MLSOutputStream stream) throws IOException

Implements org.bouncycastle.mls.codec.MLSOutputStream.Writable.writeTo.

Annotations
@Override
org.bouncycastle.mls.codec back to summary

public Class PreSharedKeyID.External

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final Secret

Constructor Summary

AccessConstructor and Description
public
External(byte[] externalPSKID)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

externalPSKIDback to summary
public final Secret externalPSKID

Constructor Detail

Externalback to summary
public External(byte[] externalPSKID)
org.bouncycastle.mls.codec back to summary

public Class PreSharedKeyID.Resumption

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
public final long
public final byte[]
public final ResumptionPSKUsage

Constructor Summary

AccessConstructor and Description
public
Resumption(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch)

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

pskEpochback to summary
public final long pskEpoch
pskGroupIDback to summary
public final byte[] pskGroupID
resumptionPSKUsageback to summary
public final ResumptionPSKUsage resumptionPSKUsage

Constructor Detail

Resumptionback to summary
public Resumption(ResumptionPSKUsage resumptionPSKUsage, byte[] pskGroupID, long pskEpoch)