Class TCredentials
- java.lang.Object
-
- org.apache.accumulo.core.securityImpl.thrift.TCredentials
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TCredentials>
,org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
,org.apache.thrift.TSerializable
public class TCredentials extends Object implements org.apache.thrift.TBase<TCredentials,TCredentials._Fields>, Serializable, Cloneable, Comparable<TCredentials>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TCredentials._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description String
instanceId
static Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
String
principal
ByteBuffer
token
String
tokenClassName
-
Constructor Summary
Constructors Constructor Description TCredentials()
TCredentials(String principal, String tokenClassName, ByteBuffer token, String instanceId)
TCredentials(TCredentials other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 otherwiseboolean
isSetInstanceId()
Returns true if field instanceId is set (has been assigned a value) and false otherwiseboolean
isSetPrincipal()
Returns true if field principal is set (has been assigned a value) and false otherwiseboolean
isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwiseboolean
isSetTokenClassName()
Returns true if field tokenClassName is set (has been assigned a value) and false otherwisevoid
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)
-
-
-
Field Detail
-
principal
public String principal
-
tokenClassName
public String tokenClassName
-
token
public ByteBuffer token
-
instanceId
public String instanceId
-
metaDataMap
public static final Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TCredentials
public TCredentials()
-
TCredentials
public TCredentials(String principal, String tokenClassName, ByteBuffer token, String instanceId)
-
TCredentials
public TCredentials(TCredentials other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TCredentials deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
getPrincipal
public String getPrincipal()
-
setPrincipal
public TCredentials setPrincipal(String principal)
-
unsetPrincipal
public void unsetPrincipal()
-
isSetPrincipal
public boolean isSetPrincipal()
Returns true if field principal is set (has been assigned a value) and false otherwise
-
setPrincipalIsSet
public void setPrincipalIsSet(boolean value)
-
getTokenClassName
public String getTokenClassName()
-
setTokenClassName
public TCredentials setTokenClassName(String tokenClassName)
-
unsetTokenClassName
public void unsetTokenClassName()
-
isSetTokenClassName
public boolean isSetTokenClassName()
Returns true if field tokenClassName is set (has been assigned a value) and false otherwise
-
setTokenClassNameIsSet
public void setTokenClassNameIsSet(boolean value)
-
getToken
public byte[] getToken()
-
bufferForToken
public ByteBuffer bufferForToken()
-
setToken
public TCredentials setToken(byte[] token)
-
setToken
public TCredentials setToken(ByteBuffer token)
-
unsetToken
public void unsetToken()
-
isSetToken
public boolean isSetToken()
Returns true if field token is set (has been assigned a value) and false otherwise
-
setTokenIsSet
public void setTokenIsSet(boolean value)
-
getInstanceId
public String getInstanceId()
-
setInstanceId
public TCredentials setInstanceId(String instanceId)
-
unsetInstanceId
public void unsetInstanceId()
-
isSetInstanceId
public boolean isSetInstanceId()
Returns true if field instanceId is set (has been assigned a value) and false otherwise
-
setInstanceIdIsSet
public void setInstanceIdIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TCredentials._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
getFieldValue
public Object getFieldValue(TCredentials._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
isSet
public boolean isSet(TCredentials._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
equals
public boolean equals(TCredentials that)
-
compareTo
public int compareTo(TCredentials other)
- Specified by:
compareTo
in interfaceComparable<TCredentials>
-
fieldForId
public TCredentials._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TSerializable
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-