Package com.google.crypto.tink
Interface PrivateKeyManager<P>
-
- All Superinterfaces:
KeyManager<P>
public interface PrivateKeyManager<P> extends KeyManager<P>
AKeyManagerthat understands asymmetric private key types.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.crypto.tink.proto.KeyDatagetPublicKeyData(com.google.protobuf.ByteString serializedKey)Extracts the public key data from the private key data.-
Methods inherited from interface com.google.crypto.tink.KeyManager
doesSupport, getKeyType, getPrimitive, getPrimitive, getPrimitiveClass, getVersion, newKey, newKey, newKeyData
-
-
-
-
Method Detail
-
getPublicKeyData
com.google.crypto.tink.proto.KeyData getPublicKeyData(com.google.protobuf.ByteString serializedKey) throws java.security.GeneralSecurityExceptionExtracts the public key data from the private key data.- Returns:
- the
KeyDatacontaining the public keys - Throws:
java.security.GeneralSecurityException- if the specified format is wrong or not supported
-
-