Package eu.clarin.sru.client.auth
Class KeyReaderUtils
- java.lang.Object
-
- eu.clarin.sru.client.auth.KeyReaderUtils
-
public class KeyReaderUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description KeyReaderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RSAPrivateKey
readPrivateKey(File file)
static RSAPrivateKey
readPrivateKey(InputStream stream)
static RSAPrivateKey
readPrivateKey(String keyContents)
static RSAPublicKey
readPublicKey(File file)
static RSAPublicKey
readPublicKey(InputStream stream)
static RSAPublicKey
readPublicKey(String keyContents)
-
-
-
Method Detail
-
readPublicKey
public static RSAPublicKey readPublicKey(File file) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
readPrivateKey
public static RSAPrivateKey readPrivateKey(File file) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
readPublicKey
public static RSAPublicKey readPublicKey(String keyContents) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
readPrivateKey
public static RSAPrivateKey readPrivateKey(String keyContents) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
readPublicKey
public static RSAPublicKey readPublicKey(InputStream stream) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
readPrivateKey
public static RSAPrivateKey readPrivateKey(InputStream stream) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException
-
-