Class HSMAssociationInfo
-
- All Implemented Interfaces:
-
java.io.Externalizable
,java.io.Serializable
,java.lang.Comparable
,org.apache.avro.generic.GenericContainer
,org.apache.avro.generic.GenericRecord
,org.apache.avro.generic.IndexedRecord
,org.apache.avro.specific.SpecificRecord
public class HSMAssociationInfo extends SpecificRecordBase implements SpecificRecord
Defines information for HSM association.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
HSMAssociationInfo.Builder
RecordBuilder for HSMAssociationInfo instances.
-
Constructor Summary
Constructors Constructor Description HSMAssociationInfo()
Default constructor. HSMAssociationInfo(String id, String tenantId, String hsmId, String category, String masterKeyAlias, Long deprecatedAt)
All-args constructor.
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. void
setId(String value)
Sets the value of the 'id' field. String
getTenantId()
Gets the value of the 'tenantId' field. void
setTenantId(String value)
Sets the value of the 'tenantId' field. String
getHsmId()
Gets the value of the 'hsmId' field. void
setHsmId(String value)
Sets the value of the 'hsmId' field. String
getCategory()
Gets the value of the 'category' field. void
setCategory(String value)
Sets the value of the 'category' field. String
getMasterKeyAlias()
Gets the value of the 'masterKeyAlias' field. void
setMasterKeyAlias(String value)
Sets the value of the 'masterKeyAlias' field. long
getDeprecatedAt()
Gets the value of the 'deprecatedAt' field. void
setDeprecatedAt(long value)
Sets the value of the 'deprecatedAt' field. static Schema
getClassSchema()
static BinaryMessageEncoder<HSMAssociationInfo>
getEncoder()
Return the BinaryMessageEncoder instance used by this class. static BinaryMessageDecoder<HSMAssociationInfo>
getDecoder()
Return the BinaryMessageDecoder instance used by this class. static BinaryMessageDecoder<HSMAssociationInfo>
createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore. ByteBuffer
toByteBuffer()
Serializes this HSMAssociationInfo to a ByteBuffer. static HSMAssociationInfo
fromByteBuffer(ByteBuffer b)
Deserializes a HSMAssociationInfo from a ByteBuffer. SpecificData
getSpecificData()
Schema
getSchema()
Object
get(int field$)
void
put(int field$, Object value$)
static HSMAssociationInfo.Builder
newBuilder()
Creates a new HSMAssociationInfo RecordBuilder. static HSMAssociationInfo.Builder
newBuilder(HSMAssociationInfo.Builder other)
Creates a new HSMAssociationInfo RecordBuilder by copying an existing Builder. static HSMAssociationInfo.Builder
newBuilder(HSMAssociationInfo other)
Creates a new HSMAssociationInfo RecordBuilder by copying an existing HSMAssociationInfo instance. void
writeExternal(ObjectOutput out)
void
readExternal(ObjectInput in)
void
customEncode(Encoder out)
void
customDecode(ResolvingDecoder in)
-
Methods inherited from class org.apache.avro.specific.SpecificRecordBase
compareTo, equals, getConversion, hashCode, toString
-
Methods inherited from class org.apache.avro.generic.GenericRecord
hasField
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HSMAssociationInfo
HSMAssociationInfo()
Default constructor.
-
HSMAssociationInfo
HSMAssociationInfo(String id, String tenantId, String hsmId, String category, String masterKeyAlias, Long deprecatedAt)
All-args constructor.- Parameters:
id
- Association id.tenantId
- Association tenant id.hsmId
- HSM id which handles the keys for this association.category
- The category, like TLS, LEDGER, etc., which assignment was made for.masterKeyAlias
- The master key alias which is used for the keys.deprecatedAt
- If greater than 0 - when the association was deprecated.
-
-
Method Detail
-
setId
void setId(String value)
Sets the value of the 'id' field. Association id.
- Parameters:
value
- the value to set.
-
getTenantId
String getTenantId()
Gets the value of the 'tenantId' field.
-
setTenantId
void setTenantId(String value)
Sets the value of the 'tenantId' field. Association tenant id.
- Parameters:
value
- the value to set.
-
setHsmId
void setHsmId(String value)
Sets the value of the 'hsmId' field. HSM id which handles the keys for this association.
- Parameters:
value
- the value to set.
-
getCategory
String getCategory()
Gets the value of the 'category' field.
-
setCategory
void setCategory(String value)
Sets the value of the 'category' field. The category, like TLS, LEDGER, etc., which assignment was made for.
- Parameters:
value
- the value to set.
-
getMasterKeyAlias
String getMasterKeyAlias()
Gets the value of the 'masterKeyAlias' field.
-
setMasterKeyAlias
void setMasterKeyAlias(String value)
Sets the value of the 'masterKeyAlias' field. The master key alias which is used for the keys.
- Parameters:
value
- the value to set.
-
getDeprecatedAt
long getDeprecatedAt()
Gets the value of the 'deprecatedAt' field.
-
setDeprecatedAt
void setDeprecatedAt(long value)
Sets the value of the 'deprecatedAt' field. If greater than 0 - when the association was deprecated.
- Parameters:
value
- the value to set.
-
getClassSchema
static Schema getClassSchema()
-
getEncoder
static BinaryMessageEncoder<HSMAssociationInfo> getEncoder()
Return the BinaryMessageEncoder instance used by this class.
-
getDecoder
static BinaryMessageDecoder<HSMAssociationInfo> getDecoder()
Return the BinaryMessageDecoder instance used by this class.
-
createDecoder
static BinaryMessageDecoder<HSMAssociationInfo> createDecoder(SchemaStore resolver)
Create a new BinaryMessageDecoder instance for this class that uses the specified SchemaStore.
- Parameters:
resolver
- a SchemaStore used to find schemas by fingerprint
-
toByteBuffer
ByteBuffer toByteBuffer()
Serializes this HSMAssociationInfo to a ByteBuffer.
-
fromByteBuffer
static HSMAssociationInfo fromByteBuffer(ByteBuffer b)
Deserializes a HSMAssociationInfo from a ByteBuffer.
- Parameters:
b
- a byte buffer holding serialized data for an instance of this class
-
getSpecificData
SpecificData getSpecificData()
-
getSchema
Schema getSchema()
-
newBuilder
static HSMAssociationInfo.Builder newBuilder()
Creates a new HSMAssociationInfo RecordBuilder.
-
newBuilder
static HSMAssociationInfo.Builder newBuilder(HSMAssociationInfo.Builder other)
Creates a new HSMAssociationInfo RecordBuilder by copying an existing Builder.
- Parameters:
other
- The existing builder to copy.
-
newBuilder
static HSMAssociationInfo.Builder newBuilder(HSMAssociationInfo other)
Creates a new HSMAssociationInfo RecordBuilder by copying an existing HSMAssociationInfo instance.
- Parameters:
other
- The existing instance to copy.
-
writeExternal
void writeExternal(ObjectOutput out)
-
readExternal
void readExternal(ObjectInput in)
-
customEncode
void customEncode(Encoder out)
-
customDecode
void customDecode(ResolvingDecoder in)
-
-
-
-