public class AuthenticationMethodInformationImpl extends Object implements AuthenticationMethodInformation
| Modifier and Type | Field and Description |
|---|---|
private long |
authenticationDuration
The lifetime of the authentication method.
|
private long |
authenticationInstant
The timestamp at which authentication occurred.
|
private String |
authenticationMethod
The authentication method (a URI).
|
private Principal |
authenticationPrincipal
Principal created by the authentication method.
|
private Subject |
authenticationSubject
Subject created by this authentication mechanism.
|
private long |
expirationInstant
Time when this method expires.
|
private static long |
serialVersionUID
Serial version UID.
|
| Constructor and Description |
|---|
AuthenticationMethodInformationImpl(Subject subject,
Principal principal,
String method,
org.joda.time.DateTime instant,
long duration)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getAuthenticationDuration()
Gets the duration of this authentication method.
|
org.joda.time.DateTime |
getAuthenticationInstant()
Gets the time the user authenticated with this member.
|
String |
getAuthenticationMethod()
Gets the unique identifier for the authentication method.
|
Principal |
getAuthenticationPrincipal()
Gets the principal, for the
Subject of the session, created by this authentication method. |
Subject |
getAuthenticationSubject()
Gets the Subject created by this authentication method.
|
int |
hashCode() |
boolean |
isExpired()
Gets whether this authentication method has expired and is not longer valid for use in constructing new sessions.
|
private static final long serialVersionUID
private Subject authenticationSubject
private Principal authenticationPrincipal
private String authenticationMethod
private long authenticationInstant
private long authenticationDuration
private long expirationInstant
public AuthenticationMethodInformationImpl(Subject subject, Principal principal, String method, org.joda.time.DateTime instant, long duration)
subject - subject associated with the user's sessionprincipal - principal created by the authentication methodmethod - The unique identifier for the authentication methodinstant - The time the user authenticated with this memberduration - The duration of this authentication methodpublic Subject getAuthenticationSubject()
getAuthenticationSubject in interface AuthenticationMethodInformationpublic Principal getAuthenticationPrincipal()
Subject of the session, created by this authentication method.getAuthenticationPrincipal in interface AuthenticationMethodInformationpublic String getAuthenticationMethod()
getAuthenticationMethod in interface AuthenticationMethodInformationpublic org.joda.time.DateTime getAuthenticationInstant()
getAuthenticationInstant in interface AuthenticationMethodInformationpublic long getAuthenticationDuration()
getAuthenticationDuration in interface AuthenticationMethodInformationpublic boolean isExpired()
isExpired in interface AuthenticationMethodInformationCopyright © 1999-2014. All Rights Reserved.