Package org.iqtig.crypto.key.interfaces
Interface KeyGetter
-
- All Known Implementing Classes:
KeyGetterImpl
public interface KeyGetter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyPair
newAsymmetricKey()
Key
newSymmetricKey()
KeyPair
readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey)
PrivateKey
readRSAPrivateKey(InputStream in)
PublicKey
readRSAPublicKey(InputStream in)
-
-
-
Method Detail
-
newSymmetricKey
Key newSymmetricKey()
-
newAsymmetricKey
KeyPair newAsymmetricKey()
-
readRSAKeyPair
KeyPair readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, InvalidKeySpecException, NoSuchAlgorithmException
- Throws:
IOException
org.apache.xml.security.exceptions.Base64DecodingException
InvalidKeySpecException
NoSuchAlgorithmException
-
readRSAPublicKey
PublicKey readRSAPublicKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException
- Throws:
IOException
org.apache.xml.security.exceptions.Base64DecodingException
InvalidKeyException
NoSuchAlgorithmException
InvalidKeySpecException
-
readRSAPrivateKey
PrivateKey readRSAPrivateKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, InvalidKeyException, NoSuchAlgorithmException, InvalidKeySpecException
- Throws:
IOException
org.apache.xml.security.exceptions.Base64DecodingException
InvalidKeyException
NoSuchAlgorithmException
InvalidKeySpecException
-
-