this._params = new OAEPParams(null, null);
} else {
if (params instanceof OAEPParams) {
this._params = (OAEPParams) params;
} else {
throw new XMLSecurityException("empty");
}
}
try {
Cipher rsaCipher =
Cipher.getInstance(this.getImplementedAlgorithmJCE(),
this.getRequiredProviderName());
MessageDigestAlgorithm mda =
MessageDigestAlgorithm.getInstance(this._doc,
this._params
.getDigestMethodURI());
MessageDigest md = mda.getAlgorithm();
this._cipher = new OAEPCipher(rsaCipher, md,
this._params.getOAEPParamBytes());
} catch (NoSuchAlgorithmException ex) {
throw new XMLSecurityException("empty", ex);
} catch (NoSuchProviderException ex) {
throw new XMLSecurityException("empty", ex);
} catch (NoSuchPaddingException ex) {
throw new XMLSecurityException("empty", ex);
}
return (EncryptionMethodParams) this._params;
}