Class SessionKey
java.lang.Object
com.nt.udc.processor.SequenceProcessor.SessionKey
Immutable. Just like the String class.
I.E. once created, its value never changes.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionKey
(byte[] key) Create a new key using the input byte array.SessionKey
(SessionKey key) Create a copy of the SessionKeykey
. -
Method Summary
-
Constructor Details
-
SessionKey
public SessionKey(byte[] key) Create a new key using the input byte array. The contents of the input byte array is copied. Therefore, the user is free to change the input after creating the SessionKey, and it won't affect the key itself.- Parameters:
key
- byte array of session key value- Throws:
NullPointerException
- ifkey
isnull
.
-
SessionKey
Create a copy of the SessionKeykey
. Note that the 2 SessionKeys share the byte array, but since this class is immutable, nothing bad is gonna happen. :)
-
-
Method Details