Class ImportToken

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class ImportToken
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Properties that are associated with import tokens.
    • Method Detail

      • newBuilder

        public ImportToken.Builder newBuilder()
        New builder.
        Returns:
        a ImportToken builder
      • expiration

        public Double expiration()
        Gets the expiration. The time in seconds from the creation of an import token that determines how long its associated public key remains valid. The minimum value is `300` seconds (5 minutes), and the maximum value is `86400` (24 hours). The default value is `600` (10 minutes).
        Returns:
        the expiration
      • maxAllowedRetrievals

        public Double maxAllowedRetrievals()
        Gets the maxAllowedRetrievals. The number of times that an import token can be retrieved within its expiration time before it is no longer accessible.
        Returns:
        the maxAllowedRetrievals
      • creationDate

        public Date creationDate()
        Gets the creationDate. The date the import token was created. The date format follows RFC 3339.
        Returns:
        the creationDate
      • expirationDate

        public Date expirationDate()
        Gets the expirationDate. The date the import token expires. The date format follows RFC 3339.
        Returns:
        the expirationDate
      • remainingRetrievals

        public Double remainingRetrievals()
        Gets the remainingRetrievals. The number of retrievals that are available for the import token before it is no longer accessible.
        Returns:
        the remainingRetrievals