Class Key

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.Key
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class Key extends com.ibm.cloud.sdk.core.service.model.GenericModel
Key.
  • Method Details

    • getCreatedAt

      public Date getCreatedAt()
      Gets the createdAt. The date and time that the key was created.
      Returns:
      the createdAt
    • getCrn

      public String getCrn()
      Gets the crn. The CRN for this key.
      Returns:
      the crn
    • getFingerprint

      public String getFingerprint()
      Gets the fingerprint. The fingerprint for this key. The value is returned base64-encoded and prefixed with the hash algorithm (always `SHA256`).
      Returns:
      the fingerprint
    • getHref

      public String getHref()
      Gets the href. The URL for this key.
      Returns:
      the href
    • getId

      public String getId()
      Gets the id. The unique identifier for this key.
      Returns:
      the id
    • getLength

      public Long getLength()
      Gets the length. The length of this key (in bits).
      Returns:
      the length
    • getName

      public String getName()
      Gets the name. The name for this key. The name must not be used by another key in the region. If unspecified, the name will be a hyphenated list of randomly-selected words.
      Returns:
      the name
    • getPublicKey

      public String getPublicKey()
      Gets the publicKey. The public SSH key, consisting of two space-separated fields: the algorithm name, and the base64-encoded key.
      Returns:
      the publicKey
    • getResourceGroup

      public ResourceGroupReference getResourceGroup()
      Gets the resourceGroup. The resource group for this key.
      Returns:
      the resourceGroup
    • getType

      public String getType()
      Gets the type. The crypto-system for this key. The enumerated values for this property may [expand](https://cloud.ibm.com/apidocs/vpc#property-value-expansion) in the future.
      Returns:
      the type