View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.api.security;
8   
9   import java.io.Serializable;
10  import java.util.Map;
11  
12  /**
13   * <code>Authentication</code> represents an authentication request and contains
14   * authentication information if the request was successful
15   */
16  public interface Authentication extends Serializable
17  {
18      void setAuthenticated(boolean b);
19  
20      boolean isAuthenticated();
21  
22      Object getCredentials();
23  
24      Object getPrincipal();
25  
26      Map getProperties();
27  
28      void setProperties(Map properties);
29  }