Copyright© 2008-2022 Sitevision AB, all rights reserved.
public class UserPrincipalCallback extends Object implements Callback
JAAS callback for mapping usernames to Principals. The Principal will be a User object in the Sitevision model.
Important legacy note! As of Sitevision 3 this class has been moved (from package senselogic.sitevision.security.jaas.callback.api). Previously implemented custom JAAS filters/modules using this class must be re-compiled in order to run in Sitevision 3.| Constructor and Description |
|---|
UserPrincipalCallback(String aName)
Create a callback that provides the username of the user to be looked up and converted into a Principal.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the username of the principal to be found.
|
Principal |
getPrincipal()
Get principal that corresponds to the given username.
|
void |
setPrincipal(Principal aPrincipal)
Sets the principal that corresponds to the given username.
|
public UserPrincipalCallback(String aName)
aName - usernamepublic String getName()
public Principal getPrincipal()
null if no such user is found.public void setPrincipal(Principal aPrincipal)
aPrincipal - a user principalSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.