Copyright© 2008-2022 Sitevision AB, all rights reserved.
public class NodePrincipalCallback extends Object implements Callback
JAAS callback for mapping ids to JCR user nodes.
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.Modifier and Type | Field and Description |
---|---|
static String |
DESCRIPTION
The key/property name to use (by login modules) to set the description property on the node principal.
|
static String |
GIVENNAME
The key/property name to use (by login modules) to set the given name property on the node principal.
|
static String |
GROUPS
The key/property name to use (by login modules) to set the (multivalued) groups property on the node principal.
|
static String |
MAIL
The key/property name to use (by login modules) to set the mail property on the node principal.
|
static String |
MOBIL
The key/property name to use (by login modules) to set the mobile phone property on the node principal.
|
static String |
NAME
The key/property name to use (by login modules) to set the name property on the node principal.
|
static String |
PERSONAL_NUMBER
The key/property name to use (by login modules) to set the personal number property on the node principal.
|
static String |
SN
The key/property name to use (by login modules) to set the surname property on the node principal.
|
static String |
TELEPHONE_NUMBER
The key/property name to use (by login modules) to set the phone property on the node principal.
|
static String |
TITLE
The key/property name to use (by login modules) to set the title property on the node principal.
|
Constructor and Description |
---|
NodePrincipalCallback(String aId)
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 |
getId()
Gets the username of the principal to be found.
|
Node |
getNodePrincipal()
Gets the node principal that corresponds to the given username.
|
Principal |
getPrincipal()
Gets the principal that corresponds to the given username.
|
void |
setNodePrincipal(Node aPrincipal)
Sets the node principal.
|
void |
setPrincipal(Principal aPrincipal)
Sets the principal.
|
public static final String NAME
public static final String GIVENNAME
public static final String SN
public static final String MAIL
public static final String GROUPS
public static final String TELEPHONE_NUMBER
public static final String PERSONAL_NUMBER
public static final String MOBIL
public static final String TITLE
public static final String DESCRIPTION
public NodePrincipalCallback(String aId)
aId
- idpublic String getId()
public Node getNodePrincipal()
null
if no such user is found.public void setNodePrincipal(Node aPrincipal)
aPrincipal
- a node principalpublic Principal getPrincipal()
null
if no such user is found.public void setPrincipal(Principal aPrincipal)
aPrincipal
- the 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.