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.

    • Constructor Detail

    • Method Detail

      • getId

         String getId()

        Gets the value of the 'id' field. The key's id.

      • getTenantId

         String getTenantId()

        Gets the value of the 'tenantId' field. The key owner.

      • getCategory

         String getCategory()

        Gets the value of the 'category' field. The key's category, such as TLS, LEDGER, etc.

      • 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'.
      • getSchemeCodeName

         String getSchemeCodeName()

        Gets the value of the 'schemeCodeName' field. The key's signature scheme code.

      • getMasterKeyAlias

         String getMasterKeyAlias()

        Gets the value of the 'masterKeyAlias' field. For wrapped keys only, the master's key alias.

      • getExternalId

         String getExternalId()

        Gets the value of the 'externalId' field. External id associated with the key.

      • 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.

      • hasTenantId

         boolean hasTenantId()

        Checks whether the 'tenantId' field has been set. The key owner.

      • hasCategory

         boolean hasCategory()

        Checks whether the 'category' field has been set. 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.

      • hasPublicKey

         boolean hasPublicKey()

        Checks whether the 'publicKey' field has been set. Serialized public key.

      • hasSchemeCodeName

         boolean hasSchemeCodeName()

        Checks whether the 'schemeCodeName' field has been set. 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.

      • hasEncodingVersion

         boolean hasEncodingVersion()

        Checks whether the 'encodingVersion' field has been set. Encoding protocol version.

      • hasExternalId

         boolean hasExternalId()

        Checks whether the 'externalId' field has been set. 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.