securityContext.handleBSPRule(BSPRule.R5623);
}
if (encryptedKeyType.getRecipient() != null) {
securityContext.handleBSPRule(BSPRule.R5602);
}
EncryptionMethodType encryptionMethodType = encryptedKeyType.getEncryptionMethod();
if (encryptionMethodType == null) {
securityContext.handleBSPRule(BSPRule.R5603);
} else {
String encryptionMethod = encryptionMethodType.getAlgorithm();
if (!WSSConstants.NS_XENC_RSA15.equals(encryptionMethod)
&& !WSSConstants.NS_XENC_RSAOAEPMGF1P.equals(encryptionMethod)) {
securityContext.handleBSPRule(BSPRule.R5621);
}
}