public class UserAuthentication extends Object implements Authentication.User
Authentication.Challenge, Authentication.Deferred, Authentication.Failure, Authentication.ResponseSent, Authentication.SendSuccess, Authentication.User, Authentication.Wrapped
NOT_CHECKED, SEND_CONTINUE, SEND_FAILURE, SEND_SUCCESS, UNAUTHENTICATED
Constructor and Description |
---|
UserAuthentication(String method,
UserIdentity userIdentity) |
Modifier and Type | Method and Description |
---|---|
String |
getAuthMethod() |
UserIdentity |
getUserIdentity() |
boolean |
isUserInRole(UserIdentity.Scope scope,
String role) |
void |
logout() |
String |
toString() |
public UserAuthentication(String method, UserIdentity userIdentity)
public String getAuthMethod()
getAuthMethod
in interface Authentication.User
public UserIdentity getUserIdentity()
getUserIdentity
in interface Authentication.User
public boolean isUserInRole(UserIdentity.Scope scope, String role)
isUserInRole
in interface Authentication.User
public void logout()
logout
in interface Authentication.User
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.