Interface PublicKeyFactory
- All Known Subinterfaces:
SecurityProviderRegistrar
- All Known Implementing Classes:
AbstractSecurityProviderRegistrar, BouncyCastlePublicKeyFactory, BouncyCastleSecurityProviderRegistrar, EdDSAPublicKeyFactory, EdDSASecurityProviderRegistrar, JcePublicKeyFactory, SunECSecurityProviderRegistrar, SunJCESecurityProviderRegistrar
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Something that can compute a
PublicKey from a given PrivateKey.- Author:
- Apache MINA SSHD Project
-
Method Summary
Modifier and TypeMethodDescriptiongetPublicKey(PrivateKey key) Given aPrivateKeycomputes the correspondingPublicKey.
-
Method Details
-
getPublicKey
Given aPrivateKeycomputes the correspondingPublicKey.- Parameters:
key-PrivateKeyto get thePublicKeyfor- Returns:
- the
PublicKey, ornullif no public key could be computed
-