@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class TCredentials extends Object implements org.apache.thrift.TBase<TCredentials,TCredentials._Fields>, Serializable, Cloneable, Comparable<TCredentials>
Modifier and Type | Class and Description |
---|---|
static class |
TCredentials._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
String |
instanceId |
static Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
String |
principal |
ByteBuffer |
token |
String |
tokenClassName |
Constructor and Description |
---|
TCredentials() |
TCredentials(String principal,
String tokenClassName,
ByteBuffer token,
String instanceId) |
TCredentials(TCredentials other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
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) |
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
public TCredentials()
public TCredentials(String principal, String tokenClassName, ByteBuffer token, String instanceId)
public TCredentials(TCredentials other)
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(TCredentials that)
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 void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.