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 classTCredentials._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description StringinstanceIdstatic Map<TCredentials._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapStringprincipalByteBuffertokenStringtokenClassName
-
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 ByteBufferbufferForToken()voidclear()intcompareTo(TCredentials other)TCredentialsdeepCopy()booleanequals(Object that)booleanequals(TCredentials that)TCredentials._FieldsfieldForId(int fieldId)ObjectgetFieldValue(TCredentials._Fields field)StringgetInstanceId()StringgetPrincipal()byte[]getToken()StringgetTokenClassName()inthashCode()booleanisSet(TCredentials._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetInstanceId()Returns true if field instanceId is set (has been assigned a value) and false otherwisebooleanisSetPrincipal()Returns true if field principal is set (has been assigned a value) and false otherwisebooleanisSetToken()Returns true if field token is set (has been assigned a value) and false otherwisebooleanisSetTokenClassName()Returns true if field tokenClassName is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(TCredentials._Fields field, Object value)TCredentialssetInstanceId(String instanceId)voidsetInstanceIdIsSet(boolean value)TCredentialssetPrincipal(String principal)voidsetPrincipalIsSet(boolean value)TCredentialssetToken(byte[] token)TCredentialssetToken(ByteBuffer token)TCredentialssetTokenClassName(String tokenClassName)voidsetTokenClassNameIsSet(boolean value)voidsetTokenIsSet(boolean value)StringtoString()voidunsetInstanceId()voidunsetPrincipal()voidunsetToken()voidunsetTokenClassName()voidvalidate()voidwrite(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:
deepCopyin interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
clear
public void clear()
- Specified by:
clearin 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:
setFieldValuein interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
getFieldValue
public Object getFieldValue(TCredentials._Fields field)
- Specified by:
getFieldValuein 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:
isSetin interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
equals
public boolean equals(TCredentials that)
-
compareTo
public int compareTo(TCredentials other)
- Specified by:
compareToin interfaceComparable<TCredentials>
-
fieldForId
public TCredentials._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TCredentials,TCredentials._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin 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:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-