01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.jetspeed.security.activeauthentication;
18:
19: import java.util.List;
20:
21: /**
22: * <p>
23: * ActiveAuthenticationIdentityProvider
24: * </p>
25: * <p>
26: * Provides identity tokens used during active authentication to bridge the deficiencies
27: * in Java Login Modules and general Active Authentication patterns
28: * based on Java login modules. Creates a unique, short lived identity token, caching basic Authentication information across redirects,
29: * requests, and threads during the active authentication process. The life-time
30: * of this cached authentication information is meant to be very short lived.
31: * </p>
32: * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
33: * @version $Id: $
34: *
35: */
36: public interface ActiveAuthenticationIdentityProvider {
37: /**
38: * Start an authentication event with the server, creating a new and unique identity token
39: *
40: * @return the newly created identity token
41: */
42: IdentityToken createIdentityToken();
43:
44: /**
45: * Start an authentication event with the server, creating a new and unique identity token
46: *
47: * @param seed seed information to add to token
48: * @return the newly created identity token
49: */
50: IdentityToken createIdentityToken(String seed);
51:
52: /**
53: * Completes an authentication event for a given authentication token
54: *
55: * @param token The token identifying the authentication event to be completed
56: */
57: void completeAuthenticationEvent(String token);
58:
59: /**
60: * Get a list of session attribute names that should be saved and restored upon authentication events
61: * @return list of session attribute names
62: */
63: List getSessionAttributeNames();
64:
65: }
|