org.apache.accumulo.core.security.thrift
Class TCredentials

java.lang.Object
  extended by org.apache.accumulo.core.security.thrift.TCredentials
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TCredentials>, org.apache.thrift.TBase<TCredentials,TCredentials._Fields>

public class TCredentials
extends Object
implements org.apache.thrift.TBase<TCredentials,TCredentials._Fields>, Serializable, Cloneable

See Also:
Serialized Form

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

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 interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>

clear

public void clear()
Specified by:
clear in interface org.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 interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>

getFieldValue

public Object getFieldValue(TCredentials._Fields field)
Specified by:
getFieldValue in interface org.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 interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TCredentials that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TCredentials other)
Specified by:
compareTo in interface Comparable<TCredentials>

fieldForId

public TCredentials._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.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 interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TCredentials,TCredentials._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2013 Apache Accumulo Project. All Rights Reserved.