Interface KeyProvider
-
- All Known Subinterfaces:
FileKeyProvider
- All Known Implementing Classes:
BaseFileKeyProvider
,KeyPairWrapper
,OpenSSHKeyFile
,OpenSSHKeyV1KeyFile
,PKCS8KeyFile
,PuTTYKeyFile
public interface KeyProvider
A KeyProvider is a container for a public-private keypair.
-
-
Method Summary
Modifier and Type Method Description java.security.PrivateKey
getPrivate()
java.security.PublicKey
getPublic()
KeyType
getType()
-
-
-
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
-
-