|
|||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| JaasAuthenticationEvent.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 | /* Copyright 2004 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 org.acegisecurity.providers.jaas.event; | |
| 17 | ||
| 18 | import org.acegisecurity.Authentication; | |
| 19 | ||
| 20 | import org.springframework.context.ApplicationEvent; | |
| 21 | ||
| 22 | ||
| 23 | /** | |
| 24 | * Parent class for events fired by the {@link | |
| 25 | * org.acegisecurity.providers.jaas.JaasAuthenticationProvider | |
| 26 | * JaasAuthenticationProvider}. | |
| 27 | * | |
| 28 | * @author Ray Krueger | |
| 29 | * @version $Id: JaasAuthenticationEvent.java,v 1.3 2005/11/17 00:56:08 benalex Exp $ | |
| 30 | */ | |
| 31 | public abstract class JaasAuthenticationEvent extends ApplicationEvent { | |
| 32 | //~ Constructors =========================================================== | |
| 33 | ||
| 34 | /** | |
| 35 | * The Authentication object is stored as the ApplicationEvent 'source'. | |
| 36 | * | |
| 37 | * @param auth | |
| 38 | */ | |
| 39 | 6 | public JaasAuthenticationEvent(Authentication auth) { |
| 40 | 6 | super(auth); |
| 41 | } | |
| 42 | ||
| 43 | //~ Methods ================================================================ | |
| 44 | ||
| 45 | /** | |
| 46 | * Pre-casted method that returns the 'source' of the event. | |
| 47 | * | |
| 48 | * @return the Authentication | |
| 49 | */ | |
| 50 | 2 | public Authentication getAuthentication() { |
| 51 | 2 | return (Authentication) source; |
| 52 | } | |
| 53 | } |
|
||||||||||