/** * Get the entity ID of the presenter of the client TLS certificate, as will be used for trust evaluation purposes. * * <p> * The default behavior is to return the value of {@link MessageContext#getInboundMessageIssuer()}. Subclasses may * override to implement different logic. * </p> * * @param messageContext the current message context * @return the entity ID of the client TLS certificate presenter */ protected String getCertificatePresenterEntityID(MessageContext messageContext) { return messageContext.getInboundMessageIssuer(); }
/** {@inheritDoc} */ public void evaluate(MessageContext messageContext) throws SecurityPolicyException { if (DatatypeHelper.isEmpty(messageContext.getInboundMessageIssuer())) { log.error("Mandatory inbound message context issuer was not present"); throw new SecurityPolicyException("Mandatory inbound message context issuer not present"); } }
String peerEntityId = messageContext.getInboundMessageIssuer(); if (DatatypeHelper.isEmpty(peerEntityId)) { throw new SecurityException("Unable to select security policy, ID of the peer unknown.");
artifactMap.put(artifact.base64Encode(), messageContext.getInboundMessageIssuer(), messageContext .getOutboundMessageIssuer(), assertion); } catch (MarshallingException e) {