public class SimpleTokenCredentials extends Object implements TokenCredentials, Portable
Credentials
using a raw byte array token.Constructor and Description |
---|
SimpleTokenCredentials() |
SimpleTokenCredentials(byte[] token) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getClassId()
Returns class identifier for this portable class.
|
int |
getFactoryId()
Returns PortableFactory ID for this portable class
|
String |
getName()
Simple implementation which returns
"<empty>" for null tokens and "<token>" for all other tokens. |
byte[] |
getToken()
Gets the token.
|
int |
hashCode() |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader
|
String |
toString() |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asData
public SimpleTokenCredentials()
public SimpleTokenCredentials(byte[] token)
public byte[] getToken()
getToken
in interface TokenCredentials
public String getName()
"<empty>"
for null
tokens and "<token>"
for all other tokens.getName
in interface Credentials
public final void writePortable(PortableWriter writer) throws IOException
Portable
writePortable
in interface Portable
writer
- PortableWriterIOException
public final void readPortable(PortableReader reader) throws IOException
Portable
readPortable
in interface Portable
reader
- PortableReaderIOException
public int getFactoryId()
Portable
getFactoryId
in interface Portable
public int getClassId()
Portable
getClassId
in interface Portable
Copyright © 2019 Hazelcast, Inc.. All rights reserved.