@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class TAuthenticationKey extends Object implements org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>, Serializable, Cloneable, Comparable<TAuthenticationKey>
Modifier and Type | Class and Description |
---|---|
static class |
TAuthenticationKey._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
long |
creationDate |
long |
expirationDate |
int |
keyId |
static Map<TAuthenticationKey._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
ByteBuffer |
secret |
Constructor and Description |
---|
TAuthenticationKey() |
TAuthenticationKey(ByteBuffer secret) |
TAuthenticationKey(TAuthenticationKey other)
Performs a deep copy on other.
|
Modifier and Type | Method and 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 otherwise
|
boolean |
isSetCreationDate()
Returns true if field creationDate is set (has been assigned a value) and false otherwise
|
boolean |
isSetExpirationDate()
Returns true if field expirationDate is set (has been assigned a value) and false otherwise
|
boolean |
isSetKeyId()
Returns true if field keyId is set (has been assigned a value) and false otherwise
|
boolean |
isSetSecret()
Returns true if field secret is set (has been assigned a value) and false otherwise
|
void |
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) |
public ByteBuffer secret
public int keyId
public long expirationDate
public long creationDate
public static final Map<TAuthenticationKey._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public TAuthenticationKey()
public TAuthenticationKey(ByteBuffer secret)
public TAuthenticationKey(TAuthenticationKey other)
public TAuthenticationKey deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public byte[] getSecret()
public ByteBuffer bufferForSecret()
public TAuthenticationKey setSecret(byte[] secret)
public TAuthenticationKey setSecret(ByteBuffer secret)
public void unsetSecret()
public boolean isSetSecret()
public void setSecretIsSet(boolean value)
public int getKeyId()
public TAuthenticationKey setKeyId(int keyId)
public void unsetKeyId()
public boolean isSetKeyId()
public void setKeyIdIsSet(boolean value)
public long getExpirationDate()
public TAuthenticationKey setExpirationDate(long expirationDate)
public void unsetExpirationDate()
public boolean isSetExpirationDate()
public void setExpirationDateIsSet(boolean value)
public long getCreationDate()
public TAuthenticationKey setCreationDate(long creationDate)
public void unsetCreationDate()
public boolean isSetCreationDate()
public void setCreationDateIsSet(boolean value)
public void setFieldValue(TAuthenticationKey._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public Object getFieldValue(TAuthenticationKey._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public boolean isSet(TAuthenticationKey._Fields field)
isSet
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public boolean equals(TAuthenticationKey that)
public int compareTo(TAuthenticationKey other)
compareTo
in interface Comparable<TAuthenticationKey>
public TAuthenticationKey._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._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<TAuthenticationKey,TAuthenticationKey._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.