Package org.iqtig.crypto.key.impl
Class KeyGetterImpl
- java.lang.Object
-
- org.iqtig.crypto.key.impl.KeyGetterImpl
-
-
Constructor Summary
Constructors Constructor Description KeyGetterImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyPair
newAsymmetricKey()
Key
newSymmetricKey()
KeyPair
readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey)
PrivateKey
readRSAPrivateKey(InputStream in)
PublicKey
readRSAPublicKey(InputStream in)
-
-
-
Constructor Detail
-
KeyGetterImpl
public KeyGetterImpl() throws NoSuchAlgorithmException
- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
newSymmetricKey
public Key newSymmetricKey()
- Specified by:
newSymmetricKey
in interfaceKeyGetter
-
newAsymmetricKey
public KeyPair newAsymmetricKey()
- Specified by:
newAsymmetricKey
in interfaceKeyGetter
-
readRSAKeyPair
public KeyPair readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, org.apache.xml.security.exceptions.Base64DecodingException
- Specified by:
readRSAKeyPair
in interfaceKeyGetter
- Throws:
IOException
InvalidKeySpecException
NoSuchAlgorithmException
org.apache.xml.security.exceptions.Base64DecodingException
-
readRSAPublicKey
public PublicKey readRSAPublicKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, NoSuchAlgorithmException, InvalidKeySpecException
- Specified by:
readRSAPublicKey
in interfaceKeyGetter
- Throws:
IOException
org.apache.xml.security.exceptions.Base64DecodingException
NoSuchAlgorithmException
InvalidKeySpecException
-
readRSAPrivateKey
public PrivateKey readRSAPrivateKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, NoSuchAlgorithmException, InvalidKeySpecException
- Specified by:
readRSAPrivateKey
in interfaceKeyGetter
- Throws:
IOException
org.apache.xml.security.exceptions.Base64DecodingException
NoSuchAlgorithmException
InvalidKeySpecException
-
-