Copyright© 2008-2018 SiteVision AB, all rights reserved.
public class UserPrincipalCallback
extends Object
implements javax.security.auth.callback.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.
|
java.security.Principal |
getPrincipal()
Get principal that corresponds to the given username.
|
void |
setPrincipal(java.security.Principal aPrincipal)
Sets the principal that corresponds to the given username.
|
public UserPrincipalCallback(String aName)
aName
- usernamepublic String getName()
public java.security.Principal getPrincipal()
null
if no such user is found.public void setPrincipal(java.security.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-2018 SiteVision AB, all rights reserved.