Interface KeyProvider
-
- All Known Subinterfaces:
FileKeyProvider
- All Known Implementing Classes:
BaseFileKeyProvider,KeyPairWrapper,OpenSSHKeyFile,OpenSSHKeyV1KeyFile,PKCS5KeyFile,PKCS8KeyFile,PuTTYKeyFile
public interface KeyProviderA KeyProvider is a container for a public-private keypair.
-
-
Method Summary
Modifier and Type Method Description java.security.PrivateKeygetPrivate()java.security.PublicKeygetPublic()KeyTypegetType()
-
-
-
Method Detail
-
getPrivate
java.security.PrivateKey getPrivate() throws java.io.IOException- Returns:
- the private key.
- Throws:
java.io.IOException- if there is an I/O error retrieving the private key
-
getPublic
java.security.PublicKey getPublic() throws java.io.IOException- Returns:
- the public key.
- Throws:
java.io.IOException- if there is an I/O error retrieving the public key
-
-