|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.accumulo.core.security.thrift.TCredentials
public class TCredentials
Nested Class Summary | |
---|---|
static class |
TCredentials._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
String |
instanceId
|
static Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
String |
principal
|
ByteBuffer |
token
|
String |
tokenClassName
|
Constructor Summary | |
---|---|
TCredentials()
|
|
TCredentials(String principal,
String tokenClassName,
ByteBuffer token,
String instanceId)
|
|
TCredentials(TCredentials other)
Performs a deep copy on other. |
Method Summary | |
---|---|
ByteBuffer |
bufferForToken()
|
void |
clear()
|
int |
compareTo(TCredentials other)
|
TCredentials |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(TCredentials that)
|
TCredentials._Fields |
fieldForId(int fieldId)
|
Object |
getFieldValue(TCredentials._Fields field)
|
String |
getInstanceId()
|
String |
getPrincipal()
|
byte[] |
getToken()
|
String |
getTokenClassName()
|
int |
hashCode()
|
boolean |
isSet(TCredentials._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetInstanceId()
Returns true if field instanceId is set (has been assigned a value) and false otherwise |
boolean |
isSetPrincipal()
Returns true if field principal is set (has been assigned a value) and false otherwise |
boolean |
isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwise |
boolean |
isSetTokenClassName()
Returns true if field tokenClassName is set (has been assigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
void |
setFieldValue(TCredentials._Fields field,
Object value)
|
TCredentials |
setInstanceId(String instanceId)
|
void |
setInstanceIdIsSet(boolean value)
|
TCredentials |
setPrincipal(String principal)
|
void |
setPrincipalIsSet(boolean value)
|
TCredentials |
setToken(byte[] token)
|
TCredentials |
setToken(ByteBuffer token)
|
TCredentials |
setTokenClassName(String tokenClassName)
|
void |
setTokenClassNameIsSet(boolean value)
|
void |
setTokenIsSet(boolean value)
|
String |
toString()
|
void |
unsetInstanceId()
|
void |
unsetPrincipal()
|
void |
unsetToken()
|
void |
unsetTokenClassName()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public String principal
public String tokenClassName
public ByteBuffer token
public String instanceId
public static final Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public TCredentials()
public TCredentials(String principal, String tokenClassName, ByteBuffer token, String instanceId)
public TCredentials(TCredentials other)
Method Detail |
---|
public TCredentials deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public String getPrincipal()
public TCredentials setPrincipal(String principal)
public void unsetPrincipal()
public boolean isSetPrincipal()
public void setPrincipalIsSet(boolean value)
public String getTokenClassName()
public TCredentials setTokenClassName(String tokenClassName)
public void unsetTokenClassName()
public boolean isSetTokenClassName()
public void setTokenClassNameIsSet(boolean value)
public byte[] getToken()
public ByteBuffer bufferForToken()
public TCredentials setToken(byte[] token)
public TCredentials setToken(ByteBuffer token)
public void unsetToken()
public boolean isSetToken()
public void setTokenIsSet(boolean value)
public String getInstanceId()
public TCredentials setInstanceId(String instanceId)
public void unsetInstanceId()
public boolean isSetInstanceId()
public void setInstanceIdIsSet(boolean value)
public void setFieldValue(TCredentials._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public Object getFieldValue(TCredentials._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public boolean isSet(TCredentials._Fields field)
isSet
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(TCredentials that)
public int hashCode()
hashCode
in class Object
public int compareTo(TCredentials other)
compareTo
in interface Comparable<TCredentials>
public TCredentials._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |