Class CryptoSigningKey.Builder
-
- All Implemented Interfaces:
-
org.apache.avro.data.RecordBuilder
public class CryptoSigningKey.Builder extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
RecordBuilder for CryptoSigningKey instances.
-
-
Field Summary
Fields Modifier and Type Field Description public String
id
public String
tenantId
public String
category
public String
alias
public String
hsmAlias
public ByteBuffer
publicKey
public String
schemeCodeName
public String
masterKeyAlias
public Integer
encodingVersion
public String
externalId
public Instant
created
-
Method Summary
Modifier and Type Method Description String
getId()
Gets the value of the 'id' field. CryptoSigningKey.Builder
setId(String value)
Sets the value of the 'id' field. String
getTenantId()
Gets the value of the 'tenantId' field. CryptoSigningKey.Builder
setTenantId(String value)
Sets the value of the 'tenantId' field. String
getCategory()
Gets the value of the 'category' field. CryptoSigningKey.Builder
setCategory(String value)
Sets the value of the 'category' field. String
getAlias()
Gets the value of the 'alias' field. CryptoSigningKey.Builder
setAlias(String value)
Sets the value of the 'alias' field. String
getHsmAlias()
Gets the value of the 'hsmAlias' field. CryptoSigningKey.Builder
setHsmAlias(String value)
Sets the value of the 'hsmAlias' field. ByteBuffer
getPublicKey()
Gets the value of the 'publicKey' field. CryptoSigningKey.Builder
setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. String
getSchemeCodeName()
Gets the value of the 'schemeCodeName' field. CryptoSigningKey.Builder
setSchemeCodeName(String value)
Sets the value of the 'schemeCodeName' field. String
getMasterKeyAlias()
Gets the value of the 'masterKeyAlias' field. CryptoSigningKey.Builder
setMasterKeyAlias(String value)
Sets the value of the 'masterKeyAlias' field. Integer
getEncodingVersion()
Gets the value of the 'encodingVersion' field. CryptoSigningKey.Builder
setEncodingVersion(Integer value)
Sets the value of the 'encodingVersion' field. String
getExternalId()
Gets the value of the 'externalId' field. CryptoSigningKey.Builder
setExternalId(String value)
Sets the value of the 'externalId' field. Instant
getCreated()
Gets the value of the 'created' field. CryptoSigningKey.Builder
setCreated(Instant value)
Sets the value of the 'created' field. boolean
hasId()
Checks whether the 'id' field has been set. CryptoSigningKey.Builder
clearId()
Clears the value of the 'id' field. boolean
hasTenantId()
Checks whether the 'tenantId' field has been set. CryptoSigningKey.Builder
clearTenantId()
Clears the value of the 'tenantId' field. boolean
hasCategory()
Checks whether the 'category' field has been set. CryptoSigningKey.Builder
clearCategory()
Clears the value of the 'category' field. boolean
hasAlias()
Checks whether the 'alias' field has been set. CryptoSigningKey.Builder
clearAlias()
Clears the value of the 'alias' field. boolean
hasHsmAlias()
Checks whether the 'hsmAlias' field has been set. CryptoSigningKey.Builder
clearHsmAlias()
Clears the value of the 'hsmAlias' field. boolean
hasPublicKey()
Checks whether the 'publicKey' field has been set. CryptoSigningKey.Builder
clearPublicKey()
Clears the value of the 'publicKey' field. boolean
hasSchemeCodeName()
Checks whether the 'schemeCodeName' field has been set. CryptoSigningKey.Builder
clearSchemeCodeName()
Clears the value of the 'schemeCodeName' field. boolean
hasMasterKeyAlias()
Checks whether the 'masterKeyAlias' field has been set. CryptoSigningKey.Builder
clearMasterKeyAlias()
Clears the value of the 'masterKeyAlias' field. boolean
hasEncodingVersion()
Checks whether the 'encodingVersion' field has been set. CryptoSigningKey.Builder
clearEncodingVersion()
Clears the value of the 'encodingVersion' field. boolean
hasExternalId()
Checks whether the 'externalId' field has been set. CryptoSigningKey.Builder
clearExternalId()
Clears the value of the 'externalId' field. boolean
hasCreated()
Checks whether the 'created' field has been set. CryptoSigningKey.Builder
clearCreated()
Clears the value of the 'created' field. CryptoSigningKey
build()
-
-
Method Detail
-
setId
CryptoSigningKey.Builder setId(String value)
Sets the value of the 'id' field. The key's id.
- Parameters:
value
- The value of 'id'.
-
getTenantId
String getTenantId()
Gets the value of the 'tenantId' field. The key owner.
-
setTenantId
CryptoSigningKey.Builder setTenantId(String value)
Sets the value of the 'tenantId' field. The key owner.
- Parameters:
value
- The value of 'tenantId'.
-
getCategory
String getCategory()
Gets the value of the 'category' field. The key's category, such as TLS, LEDGER, etc.
-
setCategory
CryptoSigningKey.Builder setCategory(String value)
Sets the value of the 'category' field. The key's category, such as TLS, LEDGER, etc.
- Parameters:
value
- The value of 'category'.
-
getAlias
String getAlias()
Gets the value of the 'alias' field. Key's alias as defined by the tenant, the wrapped keys will have this value as null.
-
setAlias
CryptoSigningKey.Builder setAlias(String value)
Sets the value of the 'alias' field. Key's alias as defined by the tenant, the wrapped keys will have this value as null.
- Parameters:
value
- The value of 'alias'.
-
getHsmAlias
String getHsmAlias()
Gets the value of the 'hsmAlias' field. Key's alias which is used by the HSM, the wrapped keys will have this value as null.
-
setHsmAlias
CryptoSigningKey.Builder setHsmAlias(String value)
Sets the value of the 'hsmAlias' field. Key's alias which is used by the HSM, the wrapped keys will have this value as null.
- Parameters:
value
- The value of 'hsmAlias'.
-
getPublicKey
ByteBuffer getPublicKey()
Gets the value of the 'publicKey' field. Serialized public key.
-
setPublicKey
CryptoSigningKey.Builder setPublicKey(ByteBuffer value)
Sets the value of the 'publicKey' field. Serialized public key.
- Parameters:
value
- The value of 'publicKey'.
-
getSchemeCodeName
String getSchemeCodeName()
Gets the value of the 'schemeCodeName' field. The key's signature scheme code.
-
setSchemeCodeName
CryptoSigningKey.Builder setSchemeCodeName(String value)
Sets the value of the 'schemeCodeName' field. The key's signature scheme code.
- Parameters:
value
- The value of 'schemeCodeName'.
-
getMasterKeyAlias
String getMasterKeyAlias()
Gets the value of the 'masterKeyAlias' field. For wrapped keys only, the master's key alias.
-
setMasterKeyAlias
CryptoSigningKey.Builder setMasterKeyAlias(String value)
Sets the value of the 'masterKeyAlias' field. For wrapped keys only, the master's key alias.
- Parameters:
value
- The value of 'masterKeyAlias'.
-
getEncodingVersion
Integer getEncodingVersion()
Gets the value of the 'encodingVersion' field. Encoding protocol version.
-
setEncodingVersion
CryptoSigningKey.Builder setEncodingVersion(Integer value)
Sets the value of the 'encodingVersion' field. Encoding protocol version.
- Parameters:
value
- The value of 'encodingVersion'.
-
getExternalId
String getExternalId()
Gets the value of the 'externalId' field. External id associated with the key.
-
setExternalId
CryptoSigningKey.Builder setExternalId(String value)
Sets the value of the 'externalId' field. External id associated with the key.
- Parameters:
value
- The value of 'externalId'.
-
getCreated
Instant getCreated()
Gets the value of the 'created' field. Time ([Instant]) in milliseconds when the record was created.
-
setCreated
CryptoSigningKey.Builder setCreated(Instant value)
Sets the value of the 'created' field. Time ([Instant]) in milliseconds when the record was created.
- Parameters:
value
- The value of 'created'.
-
hasId
boolean hasId()
Checks whether the 'id' field has been set. The key's id.
-
clearId
CryptoSigningKey.Builder clearId()
Clears the value of the 'id' field. The key's id.
-
hasTenantId
boolean hasTenantId()
Checks whether the 'tenantId' field has been set. The key owner.
-
clearTenantId
CryptoSigningKey.Builder clearTenantId()
Clears the value of the 'tenantId' field. The key owner.
-
hasCategory
boolean hasCategory()
Checks whether the 'category' field has been set. The key's category, such as TLS, LEDGER, etc.
-
clearCategory
CryptoSigningKey.Builder clearCategory()
Clears the value of the 'category' field. The key's category, such as TLS, LEDGER, etc.
-
hasAlias
boolean hasAlias()
Checks whether the 'alias' field has been set. Key's alias as defined by the tenant, the wrapped keys will have this value as null.
-
clearAlias
CryptoSigningKey.Builder clearAlias()
Clears the value of the 'alias' field. Key's alias as defined by the tenant, the wrapped keys will have this value as null.
-
hasHsmAlias
boolean hasHsmAlias()
Checks whether the 'hsmAlias' field has been set. Key's alias which is used by the HSM, the wrapped keys will have this value as null.
-
clearHsmAlias
CryptoSigningKey.Builder clearHsmAlias()
Clears the value of the 'hsmAlias' field. Key's alias which is used by the HSM, the wrapped keys will have this value as null.
-
hasPublicKey
boolean hasPublicKey()
Checks whether the 'publicKey' field has been set. Serialized public key.
-
clearPublicKey
CryptoSigningKey.Builder clearPublicKey()
Clears the value of the 'publicKey' field. Serialized public key.
-
hasSchemeCodeName
boolean hasSchemeCodeName()
Checks whether the 'schemeCodeName' field has been set. The key's signature scheme code.
-
clearSchemeCodeName
CryptoSigningKey.Builder clearSchemeCodeName()
Clears the value of the 'schemeCodeName' field. The key's signature scheme code.
-
hasMasterKeyAlias
boolean hasMasterKeyAlias()
Checks whether the 'masterKeyAlias' field has been set. For wrapped keys only, the master's key alias.
-
clearMasterKeyAlias
CryptoSigningKey.Builder clearMasterKeyAlias()
Clears the value of the 'masterKeyAlias' field. For wrapped keys only, the master's key alias.
-
hasEncodingVersion
boolean hasEncodingVersion()
Checks whether the 'encodingVersion' field has been set. Encoding protocol version.
-
clearEncodingVersion
CryptoSigningKey.Builder clearEncodingVersion()
Clears the value of the 'encodingVersion' field. Encoding protocol version.
-
hasExternalId
boolean hasExternalId()
Checks whether the 'externalId' field has been set. External id associated with the key.
-
clearExternalId
CryptoSigningKey.Builder clearExternalId()
Clears the value of the 'externalId' field. External id associated with the key.
-
hasCreated
boolean hasCreated()
Checks whether the 'created' field has been set. Time ([Instant]) in milliseconds when the record was created.
-
clearCreated
CryptoSigningKey.Builder clearCreated()
Clears the value of the 'created' field. Time ([Instant]) in milliseconds when the record was created.
-
build
CryptoSigningKey build()
-
-
-
-