use of org.mule.runtime.core.internal.security.DefaultSecurityContextFactory in project mule by mulesoft.
the class MuleEventTestCase method createTestAuthentication.
private SecurityContext createTestAuthentication() {
Authentication auth = new DefaultMuleAuthentication(new DefaultMuleCredentials("dan", new char[] { 'd', 'f' }));
SecurityContext securityContext = new DefaultSecurityContextFactory().create(auth.setProperties(singletonMap("key1", "value1")));
return securityContext;
}
Aggregations