@Alpha public abstract class PrivateKeyTypeManager<KeyProtoT extends com.google.protobuf.MessageLite,PublicKeyProtoT extends com.google.protobuf.MessageLite> extends KeyTypeManager<KeyProtoT>
KeyTypeManager, but additionally has a method to create a
public key.KeyTypeManager.KeyFactory<KeyFormatProtoT extends com.google.protobuf.MessageLite,KeyProtoT extends com.google.protobuf.MessageLite>| Modifier | Constructor and Description |
|---|---|
protected |
PrivateKeyTypeManager(Class<KeyProtoT> clazz,
Class<PublicKeyProtoT> publicKeyClazz,
PrimitiveFactory<?,KeyProtoT>... factories) |
| Modifier and Type | Method and Description |
|---|---|
abstract PublicKeyProtoT |
getPublicKey(KeyProtoT keyProto)
Creates a public key from the given private key.
|
Class<PublicKeyProtoT> |
getPublicKeyClass()
Returns the class corresponding to the public key protobuffer.
|
fipsStatus, firstSupportedPrimitiveClass, getKeyClass, getKeyType, getPrimitive, getVersion, keyFactory, keyMaterialType, parseKey, supportedPrimitives, validateKey@SafeVarargs protected PrivateKeyTypeManager(Class<KeyProtoT> clazz, Class<PublicKeyProtoT> publicKeyClazz, PrimitiveFactory<?,KeyProtoT>... factories)
public final Class<PublicKeyProtoT> getPublicKeyClass()
public abstract PublicKeyProtoT getPublicKey(KeyProtoT keyProto) throws GeneralSecurityException
GeneralSecurityException