public abstract class AbstractCredentials extends Object implements Credentials, Portable
Credentials
Constructor and Description |
---|
AbstractCredentials() |
AbstractCredentials(String principal) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getEndpoint()
Returns IP address of endpoint.
|
String |
getPrincipal()
Returns principal of endpoint.
|
int |
hashCode() |
void |
readPortable(PortableReader reader) |
protected abstract void |
readPortableInternal(PortableReader reader) |
void |
setEndpoint(String endpoint)
Sets IP address of endpoint.
|
void |
setPrincipal(String principal) |
void |
writePortable(PortableWriter writer) |
protected abstract void |
writePortableInternal(PortableWriter writer) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getClassId, getFactoryId
public AbstractCredentials()
public AbstractCredentials(String principal)
public final String getEndpoint()
Credentials
getEndpoint
in interface Credentials
public final void setEndpoint(String endpoint)
Credentials
setEndpoint
in interface Credentials
endpoint
- addresspublic String getPrincipal()
Credentials
getPrincipal
in interface Credentials
public void setPrincipal(String principal)
public final void writePortable(PortableWriter writer) throws IOException
writePortable
in interface Portable
IOException
public final void readPortable(PortableReader reader) throws IOException
readPortable
in interface Portable
IOException
protected abstract void writePortableInternal(PortableWriter writer) throws IOException
IOException
protected abstract void readPortableInternal(PortableReader reader) throws IOException
IOException
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.