public abstract class AbstractCredentials extends Object implements Credentials, DataSerializable
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 |
readData(DataInput in) |
protected abstract void |
readDataInternal(DataInput in) |
void |
setEndpoint(String endpoint)
Sets IP address of endpoint.
|
void |
setPrincipal(String principal) |
void |
writeData(DataOutput out) |
protected abstract void |
writeDataInternal(DataOutput out) |
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 writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public final void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
protected abstract void writeDataInternal(DataOutput out) throws IOException
IOException
protected abstract void readDataInternal(DataInput in) throws IOException
IOException
Copyright © 2008-2013 Hazelcast, Inc. All Rights Reserved.