Source code: net/sf/acegisecurity/context/security/SecureContext.java
1 /* Copyright 2004, 2005 Acegi Technology Pty Limited
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 package net.sf.acegisecurity.context.security;
17
18 import net.sf.acegisecurity.Authentication;
19 import net.sf.acegisecurity.context.Context;
20
21
22 /**
23 * A {@link Context} that also stores {@link Authentication} information.
24 *
25 * <p>
26 * This interface must be implemented on contexts that will be presented to the
27 * Acegi Security System for Spring, as it is required by the {@link
28 * net.sf.acegisecurity.intercept.AbstractSecurityInterceptor}.
29 * </p>
30 *
31 * @author Ben Alex
32 * @version $Id: SecureContext.java,v 1.1 2005/02/21 06:48:28 benalex Exp $
33 */
34 public interface SecureContext extends Context {
35 //~ Methods ================================================================
36
37 public void setAuthentication(Authentication newAuthentication);
38
39 public Authentication getAuthentication();
40 }