Class Encryption
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<Encryption.Builder,
Encryption>
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Algorithm
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).final String
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).static Encryption.Builder
builder()
final String
A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content.final String
deviceId()
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final KeyType
keyType()
The type of key that is used for the encryption.final String
The type of key that is used for the encryption.final String
region()
The AWS Region that the API Gateway proxy endpoint was created in.final String
An identifier for the content.final String
roleArn()
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).final String
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key.static Class
<? extends Encryption.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.final String
url()
The URL from the API Gateway proxy that you set up to talk to your key server.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
algorithm
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).If the service returns an enum value that is not available in the current SDK version,
algorithm
will returnAlgorithm.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromalgorithmAsString()
.- Returns:
- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
- See Also:
-
algorithmAsString
The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).If the service returns an enum value that is not available in the current SDK version,
algorithm
will returnAlgorithm.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromalgorithmAsString()
.- Returns:
- The type of algorithm that is used for the encryption (such as aes128, aes192, or aes256).
- See Also:
-
constantInitializationVector
A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.- Returns:
- A 128-bit, 16-byte hex value represented by a 32-character string, to be used with the key for encrypting content. This parameter is not valid for static key encryption.
-
deviceId
The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
- The value of one of the devices that you configured with your digital rights management (DRM) platform key provider. This parameter is required for SPEKE encryption and is not valid for static key encryption.
-
keyType
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).If the service returns an enum value that is not available in the current SDK version,
keyType
will returnKeyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromkeyTypeAsString()
.- Returns:
- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
- See Also:
-
keyTypeAsString
The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).If the service returns an enum value that is not available in the current SDK version,
keyType
will returnKeyType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromkeyTypeAsString()
.- Returns:
- The type of key that is used for the encryption. If no keyType is provided, the service will use the default setting (static-key).
- See Also:
-
region
The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
- The AWS Region that the API Gateway proxy endpoint was created in. This parameter is required for SPEKE encryption and is not valid for static key encryption.
-
resourceId
An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
- An identifier for the content. The service sends this value to the key server to identify the current endpoint. The resource ID is also known as the content ID. This parameter is required for SPEKE encryption and is not valid for static key encryption.
-
roleArn
The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).- Returns:
- The ARN of the role that you created during setup (when you set up AWS Elemental MediaConnect as a trusted entity).
-
secretArn
The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.- Returns:
- The ARN of the secret that you created in AWS Secrets Manager to store the encryption key. This parameter is required for static key encryption and is not valid for SPEKE encryption.
-
url
The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.- Returns:
- The URL from the API Gateway proxy that you set up to talk to your key server. This parameter is required for SPEKE encryption and is not valid for static key encryption.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<Encryption.Builder,
Encryption> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-