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.GenericModel
Key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
Key.Type
The crypto-system for this key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getCreatedAt()
Gets the createdAt.String
getCrn()
Gets the crn.String
getFingerprint()
Gets the fingerprint.String
getHref()
Gets the href.String
getId()
Gets the id.Long
getLength()
Gets the length.String
getName()
Gets the name.String
getPublicKey()
Gets the publicKey.ResourceGroupReference
getResourceGroup()
Gets the resourceGroup.String
getType()
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 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
-
-