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.GenericModel
Properties that are associated with import tokens.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImportToken.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
creationDate()
Gets the creationDate.Double
expiration()
Gets the expiration.Date
expirationDate()
Gets the expirationDate.Double
maxAllowedRetrievals()
Gets the maxAllowedRetrievals.ImportToken.Builder
newBuilder()
New builder.Double
remainingRetrievals()
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
-
-