Class RawKeyMaterial<T>
- java.lang.Object
-
- software.amazon.encryption.s3.materials.RawKeyMaterial<T>
-
- Type Parameters:
T- the type of key material
- Direct Known Subclasses:
AesKeyMaterial,RsaKeyMaterial
public class RawKeyMaterial<T> extends Object
This class represents raw key material used by keyrings. It contains a materials description and the actual key material.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRawKeyMaterial.Builder<T>Builder for RawKeyMaterial.
-
Field Summary
Fields Modifier and Type Field Description protected T_keyMaterialprotected MaterialsDescription_materialsDescription
-
Constructor Summary
Constructors Modifier Constructor Description protectedRawKeyMaterial(MaterialsDescription materialsDescription, T keyMaterial)Protected constructor for subclasses.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> RawKeyMaterial.Builder<T>builder()TgetKeyMaterial()MaterialsDescriptiongetMaterialsDescription()
-
-
-
Field Detail
-
_materialsDescription
protected final MaterialsDescription _materialsDescription
-
_keyMaterial
protected final T _keyMaterial
-
-
Constructor Detail
-
RawKeyMaterial
protected RawKeyMaterial(MaterialsDescription materialsDescription, T keyMaterial)
Protected constructor for subclasses.- Parameters:
materialsDescription- the materials descriptionkeyMaterial- the key material
-
-
Method Detail
-
builder
public static <T> RawKeyMaterial.Builder<T> builder()
- Returns:
- a new builder instance
-
getMaterialsDescription
public MaterialsDescription getMaterialsDescription()
- Returns:
- the materials description
-
getKeyMaterial
public T getKeyMaterial()
- Returns:
- the key material
-
-