/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (!checkRemoteUser && checkAttributes.isEmpty() && checkHeaders.isEmpty()) { log.debug("{} Configuration contains no headers or attributes to check", getLogPrefix()); throw new ComponentInitializationException("ExtractRemoteUser action configuration is invalid"); } }
log.debug("{} Trimming whitespace of input string '{}'", getLogPrefix(), s); s = s.trim(); log.debug("{} Converting input string '{}' to lowercase", getLogPrefix(), s); s = s.toLowerCase(); } else if (uppercase) { log.debug("{} Converting input string '{}' to uppercase", getLogPrefix(), s); s = s.toUpperCase(); log.debug("{} Applying replacement expression '{}' against input '{}'", getLogPrefix(), p.getFirst().pattern(), s); s = m.replaceAll(p.getSecond()); log.debug("{} Result of replacement is '{}'", getLogPrefix(), s);
/** {@inheritDoc} */ @Override protected boolean doPreExecute(@Nonnull final ProfileRequestContext profileRequestContext, @Nonnull final AuthenticationContext authenticationContext) { final MessageContext inCtx = profileRequestContext.getInboundMessageContext(); if (inCtx == null || !(inCtx.getMessage() instanceof Envelope)) { log.debug("{} Inbound message context missing or doesn't contain a SOAP Envelope", getLogPrefix()); ActionSupport.buildEvent(profileRequestContext, AuthnEventIds.NO_CREDENTIALS); return false; } inboundMessage = (Envelope) inCtx.getMessage(); return super.doPreExecute(profileRequestContext, authenticationContext); }