net.larsan.norna.service.user
Class LoginEvent

java.lang.Object
  |
  +--net.larsan.norna.service.user.LoginEvent

public class LoginEvent
extends java.lang.Object

This event details what subject has been authenticated by the user service. It contains the Subject in question plus the code source which gives the listener an opportunity to add or remove permissions as it see fit.

Version:
Alpha-0.2 / 2002-10-06 21:37
Author:
Lars J. Nilsson
See Also:
LoginListener, UserHandle

Constructor Summary
LoginEvent(javax.security.auth.Subject subject)
          Create a login event without a code source.
LoginEvent(javax.security.auth.Subject subject, java.security.CodeSource source)
          Create a login event with a subject and a code source.
 
Method Summary
 java.security.CodeSource getCodeSource()
          Get the code source for this event.
 javax.security.auth.Subject getSubject()
          Get the subject for this event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoginEvent

public LoginEvent(javax.security.auth.Subject subject)
Create a login event without a code source.

Parameters:
subject - Subject for the event, must not be null

LoginEvent

public LoginEvent(javax.security.auth.Subject subject,
                  java.security.CodeSource source)
Create a login event with a subject and a code source.

Parameters:
subject - Subject for the event, must not be null
source - Code source for the subject, may be null
Method Detail

getSubject

public javax.security.auth.Subject getSubject()
Get the subject for this event. This method wil never return null.

Returns:
The event subject, never null

getCodeSource

public java.security.CodeSource getCodeSource()
Get the code source for this event. May return null.

Returns:
CodeSource for the event, may return null.