Class ImportToken
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.ibm_key_protect_api.v2.model.ImportToken
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class ImportToken extends com.ibm.cloud.sdk.core.service.model.GenericModelProperties that are associated with import tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImportToken.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatecreationDate()Gets the creationDate.Doubleexpiration()Gets the expiration.DateexpirationDate()Gets the expirationDate.DoublemaxAllowedRetrievals()Gets the maxAllowedRetrievals.ImportToken.BuildernewBuilder()New builder.DoubleremainingRetrievals()Gets the remainingRetrievals.
-
-
-
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
-
-