Class EncryptionKey
- All Implemented Interfaces:
Serializable
,Cloneable
Represents information about the key used to encrypt data in the artifact store, such as an AWS Key Management Service (AWS KMS) key.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getId()
The ID used to identify the key.getType()
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.int
hashCode()
void
The ID used to identify the key.void
setType
(EncryptionKeyType type) The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.void
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.toString()
Returns a string representation of this object; useful for testing and debugging.The ID used to identify the key.withType
(EncryptionKeyType type) The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.The type of encryption key, such as an AWS Key Management Service (AWS KMS) key.
-
Constructor Details
-
EncryptionKey
public EncryptionKey()
-
-
Method Details
-
setId
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
- Parameters:
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
-
getId
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
- Returns:
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
-
withId
The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.
- Parameters:
id
- The ID used to identify the key. For an AWS KMS key, this is the key ID or key ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Parameters:
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.- See Also:
-
getType
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Returns:
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- See Also:
-
withType
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Parameters:
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setType
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Parameters:
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.- See Also:
-
withType
The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.
- Parameters:
type
- The type of encryption key, such as an AWS Key Management Service (AWS KMS) key. When creating or updating a pipeline, the value must be set to 'KMS'.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-