@Override protected void doInitialise() throws InitialisationException { if (strategyName != null) { strategy = muleContext.getSecurityManager().getEncryptionStrategy(strategyName); } if (strategy == null) { throw new InitialisationException(PGPMessages.encryptionStrategyNotSet(), this); } }
public WebServiceSecurityException(MuleEvent event, Throwable cause, MessageProcessor failingMessageProcessor) { super(MessageFactory.createStaticMessage( "Security exception occurred invoking web service\nEndpoint = " + event.getMessageSourceURI() + "\nSecurity provider(s) = " + event.getMuleContext().getSecurityManager().getProviders() + "\nEvent = " + event), event, cause, failingMessageProcessor); } }
/** * Template method were deriving classes can do any initialisation after the * properties have been set on this transformer * * @throws org.mule.api.lifecycle.InitialisationException */ @Override public void initialise() throws InitialisationException { if (strategyName != null) { if (endpoint.getMuleContext().getSecurityManager() == null) { if (strategy == null) { throw new InitialisationException(CoreMessages.authSecurityManagerNotSet(), this); } } else { strategy = endpoint.getMuleContext().getSecurityManager().getEncryptionStrategy(strategyName); } } if (strategy == null) { throw new InitialisationException(CoreMessages.encryptionStrategyNotSet(), this); } LifecycleUtils.initialiseIfNeeded(strategy); }
securityManager = muleContext.getSecurityManager();