public interface SecurityToken
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes()
Get the serialized token
|
java.nio.ByteBuffer |
getBytes(java.nio.ByteBuffer buffer)
Add the serialized token to a buffer
|
int |
getLength()
Get the serialized token length
|
long |
getPeerAccountId()
Get peer account identifier
|
byte[] |
getPeerPublicKey()
Get peer public key
|
byte[] |
getSessionKey(java.lang.String secretPhrase,
byte[] peerPublicKey)
Get the session key
|
void |
setSessionKey(java.lang.String secretPhrase,
byte[] peerPublicKey,
byte[] sessionKey)
Set the session key
|
long getPeerAccountId()
byte[] getPeerPublicKey()
byte[] getSessionKey(java.lang.String secretPhrase,
byte[] peerPublicKey)
secretPhrase - Server credentials secret phrasepeerPublicKey - Peer public keyvoid setSessionKey(java.lang.String secretPhrase,
byte[] peerPublicKey,
byte[] sessionKey)
secretPhrase - Server credentials secret phrasepeerPublicKey - Peer public keysessionKey - Session keyint getLength()
byte[] getBytes()
java.nio.ByteBuffer getBytes(java.nio.ByteBuffer buffer)
buffer - Byte buffer