public final class HpkePublicKeyManager extends KeyTypeManager<HpkePublicKey>
HpkeEncrypt primitive.KeyTypeManager.KeyFactory<KeyFormatProtoT extends com.google.protobuf.MessageLite,KeyProtoT extends com.google.protobuf.MessageLite>| Constructor and Description |
|---|
HpkePublicKeyManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
getKeyType()
Returns the type URL that identifies the key type of keys managed by this KeyManager.
|
int |
getVersion()
Returns the version number of this KeyManager.
|
KeyData.KeyMaterialType |
keyMaterialType()
Returns the
KeyData.KeyMaterialType for this proto. |
HpkePublicKey |
parseKey(com.google.protobuf.ByteString byteString)
Parses a serialized key proto.
|
void |
validateKey(HpkePublicKey key)
Checks if the given
keyProto is a valid key. |
fipsStatus, firstSupportedPrimitiveClass, getKeyClass, getPrimitive, keyFactory, supportedPrimitivespublic String getKeyType()
KeyTypeManagergetKeyType in class KeyTypeManager<HpkePublicKey>public int getVersion()
KeyTypeManagergetVersion in class KeyTypeManager<HpkePublicKey>public KeyData.KeyMaterialType keyMaterialType()
KeyTypeManagerKeyData.KeyMaterialType for this proto.keyMaterialType in class KeyTypeManager<HpkePublicKey>public HpkePublicKey parseKey(com.google.protobuf.ByteString byteString) throws com.google.protobuf.InvalidProtocolBufferException
KeyTypeManagerImplement as return KeyProtoT.parseFrom(byteString);.
parseKey in class KeyTypeManager<HpkePublicKey>com.google.protobuf.InvalidProtocolBufferExceptionpublic void validateKey(HpkePublicKey key) throws GeneralSecurityException
KeyTypeManagerkeyProto is a valid key.validateKey in class KeyTypeManager<HpkePublicKey>GeneralSecurityException - if the passed keyProto is not valid in any way.