Class TAuthenticationKey
- java.lang.Object
-
- org.apache.accumulo.core.securityImpl.thrift.TAuthenticationKey
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<TAuthenticationKey>
,org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
,org.apache.thrift.TSerializable
public class TAuthenticationKey extends Object implements org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>, Serializable, Cloneable, Comparable<TAuthenticationKey>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TAuthenticationKey._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 long
creationDate
long
expirationDate
int
keyId
static Map<TAuthenticationKey._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
ByteBuffer
secret
-
Constructor Summary
Constructors Constructor Description TAuthenticationKey()
TAuthenticationKey(ByteBuffer secret)
TAuthenticationKey(TAuthenticationKey other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteBuffer
bufferForSecret()
void
clear()
int
compareTo(TAuthenticationKey other)
TAuthenticationKey
deepCopy()
boolean
equals(Object that)
boolean
equals(TAuthenticationKey that)
TAuthenticationKey._Fields
fieldForId(int fieldId)
long
getCreationDate()
long
getExpirationDate()
Object
getFieldValue(TAuthenticationKey._Fields field)
int
getKeyId()
byte[]
getSecret()
int
hashCode()
boolean
isSet(TAuthenticationKey._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetCreationDate()
Returns true if field creationDate is set (has been assigned a value) and false otherwiseboolean
isSetExpirationDate()
Returns true if field expirationDate is set (has been assigned a value) and false otherwiseboolean
isSetKeyId()
Returns true if field keyId is set (has been assigned a value) and false otherwiseboolean
isSetSecret()
Returns true if field secret is set (has been assigned a value) and false otherwisevoid
read(org.apache.thrift.protocol.TProtocol iprot)
TAuthenticationKey
setCreationDate(long creationDate)
void
setCreationDateIsSet(boolean value)
TAuthenticationKey
setExpirationDate(long expirationDate)
void
setExpirationDateIsSet(boolean value)
void
setFieldValue(TAuthenticationKey._Fields field, Object value)
TAuthenticationKey
setKeyId(int keyId)
void
setKeyIdIsSet(boolean value)
TAuthenticationKey
setSecret(byte[] secret)
TAuthenticationKey
setSecret(ByteBuffer secret)
void
setSecretIsSet(boolean value)
String
toString()
void
unsetCreationDate()
void
unsetExpirationDate()
void
unsetKeyId()
void
unsetSecret()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
secret
public ByteBuffer secret
-
keyId
public int keyId
-
expirationDate
public long expirationDate
-
creationDate
public long creationDate
-
metaDataMap
public static final Map<TAuthenticationKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
TAuthenticationKey
public TAuthenticationKey()
-
TAuthenticationKey
public TAuthenticationKey(ByteBuffer secret)
-
TAuthenticationKey
public TAuthenticationKey(TAuthenticationKey other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public TAuthenticationKey deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
getSecret
public byte[] getSecret()
-
bufferForSecret
public ByteBuffer bufferForSecret()
-
setSecret
public TAuthenticationKey setSecret(byte[] secret)
-
setSecret
public TAuthenticationKey setSecret(ByteBuffer secret)
-
unsetSecret
public void unsetSecret()
-
isSetSecret
public boolean isSetSecret()
Returns true if field secret is set (has been assigned a value) and false otherwise
-
setSecretIsSet
public void setSecretIsSet(boolean value)
-
getKeyId
public int getKeyId()
-
setKeyId
public TAuthenticationKey setKeyId(int keyId)
-
unsetKeyId
public void unsetKeyId()
-
isSetKeyId
public boolean isSetKeyId()
Returns true if field keyId is set (has been assigned a value) and false otherwise
-
setKeyIdIsSet
public void setKeyIdIsSet(boolean value)
-
getExpirationDate
public long getExpirationDate()
-
setExpirationDate
public TAuthenticationKey setExpirationDate(long expirationDate)
-
unsetExpirationDate
public void unsetExpirationDate()
-
isSetExpirationDate
public boolean isSetExpirationDate()
Returns true if field expirationDate is set (has been assigned a value) and false otherwise
-
setExpirationDateIsSet
public void setExpirationDateIsSet(boolean value)
-
getCreationDate
public long getCreationDate()
-
setCreationDate
public TAuthenticationKey setCreationDate(long creationDate)
-
unsetCreationDate
public void unsetCreationDate()
-
isSetCreationDate
public boolean isSetCreationDate()
Returns true if field creationDate is set (has been assigned a value) and false otherwise
-
setCreationDateIsSet
public void setCreationDateIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TAuthenticationKey._Fields field, Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
getFieldValue
public Object getFieldValue(TAuthenticationKey._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
isSet
public boolean isSet(TAuthenticationKey._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<TAuthenticationKey,TAuthenticationKey._Fields>
-
equals
public boolean equals(TAuthenticationKey that)
-
compareTo
public int compareTo(TAuthenticationKey other)
- Specified by:
compareTo
in interfaceComparable<TAuthenticationKey>
-
fieldForId
public TAuthenticationKey._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._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
-
-