org.n52.security.authentication
Interface AuthenticationContext

All Superinterfaces:
java.io.Serializable

public interface AuthenticationContext
extends java.io.Serializable

Interface AuthenticationContext wraps common authentication states.

The implementation classes are highly depended of AuthenticationService instances, therefor instances are created by the AuthenticationService.createAuthenticationContext() method.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 18.07.2008

Method Summary
 java.util.Date getAuthenticationTime()
          Method gets the authentication time.
 javax.security.auth.Subject getSubject()
          Method gets the subject.
 boolean isAuthenticated()
          Method gets the current authentication state.
 

Method Detail

getSubject

javax.security.auth.Subject getSubject()
Method gets the subject. This is never null.

Returns:
Subject.

isAuthenticated

boolean isAuthenticated()
Method gets the current authentication state.

Returns:
boolean.

getAuthenticationTime

java.util.Date getAuthenticationTime()
Method gets the authentication time. Is null if !isAuthenticated().

Returns:
Date.


Copyright © 2004-2009 52north.org. All Rights Reserved.