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, waitasDatapublic SimpleTokenCredentials()
public SimpleTokenCredentials(byte[] token)
public byte[] getToken()
getToken in interface TokenCredentialspublic String getName()
"<empty>" for null tokens and "<token>" for all other tokens.getName in interface Credentialspublic final void writePortable(PortableWriter writer) throws IOException
PortablewritePortable in interface Portablewriter - PortableWriterIOExceptionpublic final void readPortable(PortableReader reader) throws IOException
PortablereadPortable in interface Portablereader - PortableReaderIOExceptionpublic int getFactoryId()
PortablegetFactoryId in interface Portablepublic int getClassId()
PortablegetClassId in interface PortableCopyright © 2019 Hazelcast, Inc.. All rights reserved.