View Javadoc

1   /*
2    * $Id: SecurityProvider.java 22048 2011-05-31 14:39:03Z dfeist $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.api.security;
12  
13  import org.mule.api.NameableObject;
14  import org.mule.api.lifecycle.Initialisable;
15  
16  /**
17   * <code>SecurityProvider</code> is a target security provider that actually does the work of authenticating
18   * credentials and populating the Authentication object.
19   */
20  public interface SecurityProvider extends Initialisable, NameableObject
21  {
22      Authentication authenticate(Authentication authentication) throws SecurityException;
23  
24      boolean supports(Class aClass);
25  
26      SecurityContext createSecurityContext(Authentication auth) throws UnknownAuthenticationTypeException;
27  }