processPreviousResult(result, secRef, data, wsDocInfo, bspCompliant);
} else if (secRef.containsReference()) {
// Now use the callback and get it
secretKey =
getSecretKeyFromToken(uri, null, WSPasswordCallback.SECURITY_CONTEXT_TOKEN, data);
} else if (secRef.containsKeyIdentifier()) {
String keyIdentifierValueType = secRef.getKeyIdentifierValueType();
if (bspCompliant
&& keyIdentifierValueType.equals(SecurityTokenReference.ENC_KEY_SHA1_URI)) {
BSPEnforcer.checkEncryptedKeyBSPCompliance(secRef);
}