protected BaseCipher(CipherInformation cipherInformation,
KeyStoreInformation keystoreInformation) {
this.cipherInformation = cipherInformation;
this.keystoreInformation = keystoreInformation;
if (keystoreInformation instanceof TrustKeyStoreInformation) {
keyStoreWrapper = new TrustKeyStoreWrapper();
((TrustKeyStoreWrapper) keyStoreWrapper).init(
(TrustKeyStoreInformation) keystoreInformation);
} else {
keyStoreWrapper = new IdentityKeyStoreWrapper();
IdentityKeyStoreInformation identityKeyStore =