Constructor and Description |
---|
KeyGetterImpl() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
newAsycronKey() |
Key |
newSycronKey() |
KeyPair |
readRSAKeyPair(InputStream inPublicKey,
InputStream inPrivateKey) |
PrivateKey |
readRSAPrivateKey(InputStream in) |
PublicKey |
readRSAPublicKey(InputStream in) |
void |
setKeyGenerator(IQTIGKeyGenerator keyGenerator) |
void |
setKeyPairGenerator(IQTIGKeyPairGenerator keyPairGenerator) |
public KeyGetterImpl() throws NoSuchAlgorithmException
NoSuchAlgorithmException
public Key newSycronKey()
newSycronKey
in interface KeyGetter
public KeyPair newAsycronKey()
newAsycronKey
in interface KeyGetter
public void setKeyGenerator(IQTIGKeyGenerator keyGenerator)
public void setKeyPairGenerator(IQTIGKeyPairGenerator keyPairGenerator)
public PublicKey readRSAPublicKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, InvalidKeyException
readRSAPublicKey
in interface KeyGetter
IOException
org.apache.xml.security.exceptions.Base64DecodingException
InvalidKeyException
public PrivateKey readRSAPrivateKey(InputStream in) throws IOException, org.apache.xml.security.exceptions.Base64DecodingException, InvalidKeyException
readRSAPrivateKey
in interface KeyGetter
IOException
org.apache.xml.security.exceptions.Base64DecodingException
InvalidKeyException
public KeyPair readRSAKeyPair(InputStream inPublicKey, InputStream inPrivateKey) throws IOException, InvalidKeyException, org.apache.xml.security.exceptions.Base64DecodingException
readRSAKeyPair
in interface KeyGetter
IOException
InvalidKeyException
org.apache.xml.security.exceptions.Base64DecodingException
Copyright © 2016. All rights reserved.