public final class SessionId
extends org.eclipse.californium.elements.util.Bytes
| Constructor and Description |
|---|
SessionId() |
SessionId(byte[] sessionId)
Creates a session identifier based on given bytes.
|
| Modifier and Type | Method and Description |
|---|---|
static SessionId |
emptySessionId()
Creates a new instance with an empty byte array as the ID.
|
String |
toString()
Creates a string representation of this session ID.
|
public SessionId()
public SessionId(byte[] sessionId)
sessionId - the bytes constituting the identifierNullPointerException - if the byte array is nullIllegalArgumentException - if the byte array is larger than 255
bytespublic static SessionId emptySessionId()
public String toString()
toString in class org.eclipse.californium.elements.util.Bytesid property valueCopyright © 2023 Eclipse Foundation. All rights reserved.