Class PreAuthToken.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder

    
    public class PreAuthToken.Builder
    extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
                        

    RecordBuilder for PreAuthToken instances.

    • Constructor Detail

    • Method Detail

      • getId

         String getId()

        Gets the value of the 'id' field. A unique identifier of the token.

      • setId

         PreAuthToken.Builder setId(String value)

        Sets the value of the 'id' field. A unique identifier of the token.

        Parameters:
        value - The value of 'id'.
      • getOwnerX500Name

         String getOwnerX500Name()

        Gets the value of the 'ownerX500Name' field. The X500 name of the holding identity that the token belongs to.

      • setOwnerX500Name

         PreAuthToken.Builder setOwnerX500Name(String value)

        Sets the value of the 'ownerX500Name' field. The X500 name of the holding identity that the token belongs to.

        Parameters:
        value - The value of 'ownerX500Name'.
      • getTtl

         Instant getTtl()

        Gets the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.

      • setTtl

         PreAuthToken.Builder setTtl(Instant value)

        Sets the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.

        Parameters:
        value - The value of 'ttl'.
      • getCreationRemark

         String getCreationRemark()

        Gets the value of the 'creationRemark' field. An optional remark added when the token was created.

      • setCreationRemark

         PreAuthToken.Builder setCreationRemark(String value)

        Sets the value of the 'creationRemark' field. An optional remark added when the token was created.

        Parameters:
        value - The value of 'creationRemark'.
      • getRemovalRemark

         String getRemovalRemark()

        Gets the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.

      • setRemovalRemark

         PreAuthToken.Builder setRemovalRemark(String value)

        Sets the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.

        Parameters:
        value - The value of 'removalRemark'.
      • hasId

         boolean hasId()

        Checks whether the 'id' field has been set. A unique identifier of the token.

      • hasOwnerX500Name

         boolean hasOwnerX500Name()

        Checks whether the 'ownerX500Name' field has been set. The X500 name of the holding identity that the token belongs to.

      • hasTtl

         boolean hasTtl()

        Checks whether the 'ttl' field has been set. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.

      • clearTtl

         PreAuthToken.Builder clearTtl()

        Clears the value of the 'ttl' field. Unix timestamp for when the pre auth token expires. In milliseconds since the epoch.

      • hasStatus

         boolean hasStatus()

        Checks whether the 'status' field has been set. The current status of the token.

      • hasCreationRemark

         boolean hasCreationRemark()

        Checks whether the 'creationRemark' field has been set. An optional remark added when the token was created.

      • hasRemovalRemark

         boolean hasRemovalRemark()

        Checks whether the 'removalRemark' field has been set. An optional remark added when the token is consumed, revoked or auto invalidated.

      • clearRemovalRemark

         PreAuthToken.Builder clearRemovalRemark()

        Clears the value of the 'removalRemark' field. An optional remark added when the token is consumed, revoked or auto invalidated.