public class FilePublicKeyDataProvider extends Object implements PublicKeyDataProvider
PublicKeyDataProvider that reads the public key from a file.| Constructor and Description |
|---|
FilePublicKeyDataProvider(File publicKeyFile)
Create a new provider, specifying the file from which the public key can be read.
|
FilePublicKeyDataProvider(String publicKeyFileName)
Create a new provider, specifying the name of the file from which the public key can be read.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncryptedPublicKeyData()
This method returns the data from the file containing the encrypted
public key from the public/private key pair.
|
File |
getPublicKeyFile()
Gets the file that the public key is located at.
|
public FilePublicKeyDataProvider(File publicKeyFile)
publicKeyFile - the public key filepublic FilePublicKeyDataProvider(String publicKeyFileName)
publicKeyFileName - The public key file namepublic byte[] getEncryptedPublicKeyData()
throws KeyNotFoundException
getEncryptedPublicKeyData in interface PublicKeyDataProviderKeyNotFoundException - if the key data could not be retrieved; an acceptable message or chained cause must be provided.public File getPublicKeyFile()
Copyright © 2010-2013 NWTS Java Code. All Rights Reserved. Licensed Under the Apache License version 2.0.