/**
* FIXME olamy this Object is a pain !!!
*/
- private Object principal;
+ private String principal;
// TODO: why aren't these just thrown from the authenticate() method?
private Exception exception;
this.exception = null;
}
- public AuthenticationResult( boolean authenticated, Object principal, Exception exception )
+ public AuthenticationResult( boolean authenticated, String principal, Exception exception )
{
isAuthenticated = authenticated;
this.principal = principal;
this.exception = exception;
}
- public AuthenticationResult( boolean authenticated, Object principal, Exception exception, Map<String,String> exceptionsMap )
+ public AuthenticationResult( boolean authenticated, String principal, Exception exception, Map<String,String> exceptionsMap )
{
isAuthenticated = authenticated;
this.principal = principal;
return isAuthenticated;
}
- public Object getPrincipal()
+ public String getPrincipal()
{
return principal;
}