Class LoginCallbackImpl
- java.lang.Object
-
- org.eclipse.jetty.security.authentication.LoginCallbackImpl
-
- All Implemented Interfaces:
LoginCallback
public class LoginCallbackImpl extends java.lang.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(javax.security.auth.Subject subject, java.lang.String userName, java.lang.Object credential)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clearPassword()
java.lang.Object
getCredential()
java.lang.String[]
getRoles()
javax.security.auth.Subject
getSubject()
java.lang.String
getUserName()
java.security.Principal
getUserPrincipal()
boolean
isSuccess()
void
setRoles(java.lang.String[] groups)
void
setSuccess(boolean success)
void
setUserPrincipal(java.security.Principal userPrincipal)
-
-
-
Method Detail
-
getSubject
public javax.security.auth.Subject getSubject()
- Specified by:
getSubject
in interfaceLoginCallback
-
getUserName
public java.lang.String getUserName()
- Specified by:
getUserName
in interfaceLoginCallback
-
getCredential
public java.lang.Object getCredential()
- Specified by:
getCredential
in interfaceLoginCallback
-
isSuccess
public boolean isSuccess()
- Specified by:
isSuccess
in interfaceLoginCallback
-
setSuccess
public void setSuccess(boolean success)
- Specified by:
setSuccess
in interfaceLoginCallback
-
getUserPrincipal
public java.security.Principal getUserPrincipal()
- Specified by:
getUserPrincipal
in interfaceLoginCallback
-
setUserPrincipal
public void setUserPrincipal(java.security.Principal userPrincipal)
- Specified by:
setUserPrincipal
in interfaceLoginCallback
-
getRoles
public java.lang.String[] getRoles()
- Specified by:
getRoles
in interfaceLoginCallback
-
setRoles
public void setRoles(java.lang.String[] groups)
- Specified by:
setRoles
in interfaceLoginCallback
-
clearPassword
public void clearPassword()
- Specified by:
clearPassword
in interfaceLoginCallback
-
-