public final class HpkeParameters extends HybridParameters
HpkePublicKey or HpkePrivateKey.| Modifier and Type | Class and Description |
|---|---|
static class |
HpkeParameters.AeadId
HPKE AEAD identifiers.
|
static class |
HpkeParameters.Builder
Builds a new
HpkeParameters instance. |
static class |
HpkeParameters.KdfId
HPKE KDF identifiers.
|
static class |
HpkeParameters.KemId
HPKE KEM identifiers.
|
static class |
HpkeParameters.Variant
Description of the output prefix prepended to the ciphertext.
|
| Modifier and Type | Method and Description |
|---|---|
static HpkeParameters.Builder |
builder() |
boolean |
equals(Object o) |
HpkeParameters.AeadId |
getAeadId() |
HpkeParameters.KdfId |
getKdfId() |
HpkeParameters.KemId |
getKemId() |
HpkeParameters.Variant |
getVariant() |
int |
hashCode() |
boolean |
hasIdRequirement()
Returns true if a key created with the parameters in this object has to have a certain ID when
it is in a keyset.
|
public static HpkeParameters.Builder builder()
public HpkeParameters.KemId getKemId()
public HpkeParameters.KdfId getKdfId()
public HpkeParameters.AeadId getAeadId()
public HpkeParameters.Variant getVariant()
public boolean hasIdRequirement()
ParametersIn Tink, certain keys change their behavior depending on the key id (for example, an Aead object can prefix the ciphertext with the big endian encoding of the key id). If this is
the case, such a key should require a unique id in Key.getIdRequirementOrNull() and
return true here.
hasIdRequirement in class Parameters