public SecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException { SecretKey key = keys.get(domain); if (key == null) { try { key = EncryptionKeyUtil.getSecretKey(encryptionAlgorithm, keyLength); } catch (GeneralSecurityException e) { throw logger.keyStoreProcessingError(e); } keys.put(domain, key); } return key; }
public SecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException { SecretKey key = keys.get(domain); if (key == null) { try { key = EncryptionKeyUtil.getSecretKey(encryptionAlgorithm, keyLength); } catch (GeneralSecurityException e) { throw logger.keyStoreProcessingError(e); } keys.put(domain, key); } return key; }
/** * @throws GeneralSecurityException * @see TrustKeyManager#getEncryptionKey(String) */ public SecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException { SecretKey key = keys.get(domain); if (key == null) { try { key = EncryptionKeyUtil.getSecretKey(encryptionAlgorithm, keyLength); } catch (GeneralSecurityException e) { throw logger.keyStoreProcessingError(e); } keys.put(domain, key); } return key; }
/** * @throws GeneralSecurityException * @see TrustKeyManager#getEncryptionKey(String) */ public SecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException { SecretKey key = keys.get(domain); if (key == null) { try { key = EncryptionKeyUtil.getSecretKey(encryptionAlgorithm, keyLength); } catch (GeneralSecurityException e) { throw new TrustKeyProcessingException(e); } keys.put(domain, key); } return key; }
/** * @throws GeneralSecurityException * @see TrustKeyManager#getEncryptionKey(String) */ public SecretKey getEncryptionKey(String domain, String encryptionAlgorithm, int keyLength) throws TrustKeyConfigurationException, TrustKeyProcessingException { SecretKey key = keys.get(domain); if (key == null) { try { key = EncryptionKeyUtil.getSecretKey(encryptionAlgorithm, keyLength); } catch (GeneralSecurityException e) { throw new TrustKeyProcessingException(e); } keys.put(domain, key); } return key; }