Class LoginCallbackImpl
- java.lang.Object
-
- org.eclipse.jetty.security.authentication.LoginCallbackImpl
-
- All Implemented Interfaces:
LoginCallback
public class LoginCallbackImpl extends Object implements LoginCallback
This is similar to the jaspi PasswordValidationCallback but includes user principal and group info as well.- Version:
- $Rev: 4793 $ $Date: 2009-03-19 00:00:01 +0100 (Thu, 19 Mar 2009) $
-
-
Constructor Summary
Constructors Constructor Description LoginCallbackImpl(Subject subject, String userName, Object credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearPassword()ObjectgetCredential()String[]getRoles()SubjectgetSubject()StringgetUserName()PrincipalgetUserPrincipal()booleanisSuccess()voidsetRoles(String[] groups)voidsetSuccess(boolean success)voidsetUserPrincipal(Principal userPrincipal)
-
-
-
Method Detail
-
getSubject
public Subject getSubject()
- Specified by:
getSubjectin interfaceLoginCallback
-
getUserName
public String getUserName()
- Specified by:
getUserNamein interfaceLoginCallback
-
getCredential
public Object getCredential()
- Specified by:
getCredentialin interfaceLoginCallback
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccessin interfaceLoginCallback
-
setSuccess
public void setSuccess(boolean success)
- Specified by:
setSuccessin interfaceLoginCallback
-
getUserPrincipal
public Principal getUserPrincipal()
- Specified by:
getUserPrincipalin interfaceLoginCallback
-
setUserPrincipal
public void setUserPrincipal(Principal userPrincipal)
- Specified by:
setUserPrincipalin interfaceLoginCallback
-
getRoles
public String[] getRoles()
- Specified by:
getRolesin interfaceLoginCallback
-
setRoles
public void setRoles(String[] groups)
- Specified by:
setRolesin interfaceLoginCallback
-
clearPassword
public void clearPassword()
- Specified by:
clearPasswordin interfaceLoginCallback
-
-