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 classTAuthenticationKey._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description longcreationDatelongexpirationDateintkeyIdstatic Map<TAuthenticationKey._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapByteBuffersecret
-
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 ByteBufferbufferForSecret()voidclear()intcompareTo(TAuthenticationKey other)TAuthenticationKeydeepCopy()booleanequals(Object that)booleanequals(TAuthenticationKey that)TAuthenticationKey._FieldsfieldForId(int fieldId)longgetCreationDate()longgetExpirationDate()ObjectgetFieldValue(TAuthenticationKey._Fields field)intgetKeyId()byte[]getSecret()inthashCode()booleanisSet(TAuthenticationKey._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetCreationDate()Returns true if field creationDate is set (has been assigned a value) and false otherwisebooleanisSetExpirationDate()Returns true if field expirationDate is set (has been assigned a value) and false otherwisebooleanisSetKeyId()Returns true if field keyId is set (has been assigned a value) and false otherwisebooleanisSetSecret()Returns true if field secret is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TAuthenticationKeysetCreationDate(long creationDate)voidsetCreationDateIsSet(boolean value)TAuthenticationKeysetExpirationDate(long expirationDate)voidsetExpirationDateIsSet(boolean value)voidsetFieldValue(TAuthenticationKey._Fields field, Object value)TAuthenticationKeysetKeyId(int keyId)voidsetKeyIdIsSet(boolean value)TAuthenticationKeysetSecret(byte[] secret)TAuthenticationKeysetSecret(ByteBuffer secret)voidsetSecretIsSet(boolean value)StringtoString()voidunsetCreationDate()voidunsetExpirationDate()voidunsetKeyId()voidunsetSecret()voidvalidate()voidwrite(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:
deepCopyin interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
clear
public void clear()
- Specified by:
clearin 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:
setFieldValuein interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
getFieldValue
public Object getFieldValue(TAuthenticationKey._Fields field)
- Specified by:
getFieldValuein 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:
isSetin interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._Fields>
-
equals
public boolean equals(TAuthenticationKey that)
-
compareTo
public int compareTo(TAuthenticationKey other)
- Specified by:
compareToin interfaceComparable<TAuthenticationKey>
-
fieldForId
public TAuthenticationKey._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TAuthenticationKey,TAuthenticationKey._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
-
-