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 KeyPairnewAsymmetricKey()KeynewSymmetricKey()KeyPairreadRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey)PrivateKeyreadRSAPrivateKey(InputStream in)PublicKeyreadRSAPublicKey(InputStream in)
-
-
-
Constructor Detail
-
KeyGetterImpl
public KeyGetterImpl() throws NoSuchAlgorithmException- Throws:
NoSuchAlgorithmException
-
-
Method Detail
-
newSymmetricKey
public Key newSymmetricKey()
- Specified by:
newSymmetricKeyin interfaceKeyGetter
-
newAsymmetricKey
public KeyPair newAsymmetricKey()
- Specified by:
newAsymmetricKeyin interfaceKeyGetter
-
readRSAKeyPair
public KeyPair readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey) throws IOException, InvalidKeySpecException, NoSuchAlgorithmException, org.apache.xml.security.exceptions.Base64DecodingException
- Specified by:
readRSAKeyPairin interfaceKeyGetter- Throws:
IOExceptionInvalidKeySpecExceptionNoSuchAlgorithmExceptionorg.apache.xml.security.exceptions.Base64DecodingException
-
readRSAPublicKey
public PublicKey readRSAPublicKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, NoSuchAlgorithmException, InvalidKeySpecException
- Specified by:
readRSAPublicKeyin interfaceKeyGetter- Throws:
IOExceptionorg.apache.xml.security.exceptions.Base64DecodingExceptionNoSuchAlgorithmExceptionInvalidKeySpecException
-
readRSAPrivateKey
public PrivateKey readRSAPrivateKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, NoSuchAlgorithmException, InvalidKeySpecException
- Specified by:
readRSAPrivateKeyin interfaceKeyGetter- Throws:
IOExceptionorg.apache.xml.security.exceptions.Base64DecodingExceptionNoSuchAlgorithmExceptionInvalidKeySpecException
-
-