Package com.ibm.cloud.is.vpc.v1.model
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.GenericModelKey.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceKey.TypeThe crypto-system used by this key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.StringgetFingerprint()Gets the fingerprint.StringgetHref()Gets the href.StringgetId()Gets the id.LonggetLength()Gets the length.StringgetName()Gets the name.StringgetPublicKey()Gets the publicKey.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetType()Gets the type.
-
-
-
Method Detail
-
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 used by this key.- Returns:
- the type
-
-