public class AuthenticationSuccessEvent extends Object implements UserEvent, CredentialEvent
Constructor and Description |
---|
AuthenticationSuccessEvent(UserContext context,
Credentials credentials)
Creates a new AuthenticationSuccessEvent which represents a successful
authentication attempt with the given credentials.
|
Modifier and Type | Method and Description |
---|---|
Credentials |
getCredentials()
Returns the current credentials of the user triggering the event, if any.
|
UserContext |
getUserContext()
Returns the current UserContext of the user triggering the event, if any.
|
public AuthenticationSuccessEvent(UserContext context, Credentials credentials)
context
- The UserContext created as a result of successful
authentication.credentials
- The credentials which passed authentication.public UserContext getUserContext()
UserEvent
getUserContext
in interface UserEvent
public Credentials getCredentials()
CredentialEvent
getCredentials
in interface CredentialEvent
Copyright © 2016. All rights reserved.