|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.security.DefaultSecurityRealm
public class DefaultSecurityRealm
Implementation of the SecurityRealm that gets authentication credentials from the blog directory.
Field Summary | |
---|---|
protected static java.lang.String |
DETAILS_UPDATEABLE
|
protected static java.lang.String |
EMAIL_ADDRESS
|
protected static java.lang.String |
NAME
|
protected static java.lang.String |
PASSWORD
|
protected static java.lang.String |
PREFERENCE
|
protected static java.lang.String |
PROFILE
|
protected static java.lang.String |
ROLES
|
protected static java.lang.String |
WEBSITE
|
Constructor Summary | |
---|---|
DefaultSecurityRealm()
|
Method Summary | |
---|---|
void |
changePassword(java.lang.String username,
java.lang.String password)
Changes a user's password. |
void |
createUser(PebbleUserDetails pud)
Creates a new user. |
Configuration |
getConfiguration()
|
protected java.io.File |
getFileForRealm()
|
protected java.io.File |
getFileForUser(java.lang.String username)
|
PasswordEncoder |
getPasswordEncoder()
|
SaltSource |
getSaltSource()
|
PebbleUserDetails |
getUser(java.lang.String username)
Looks up and returns user details for the given username. |
java.util.Collection<PebbleUserDetails> |
getUsers()
Looks up and returns a collection of all users. |
void |
init()
Creates the underlying security realm upon creation, if necessary. |
void |
removeUser(java.lang.String username)
Removes user details for the given username. |
void |
setConfiguration(Configuration configuration)
|
void |
setPasswordEncoder(PasswordEncoder passwordEncoder)
|
void |
setSaltSource(SaltSource saltSource)
|
void |
updateUser(PebbleUserDetails pud)
Updates user details. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PASSWORD
protected static final java.lang.String ROLES
protected static final java.lang.String NAME
protected static final java.lang.String EMAIL_ADDRESS
protected static final java.lang.String WEBSITE
protected static final java.lang.String PROFILE
protected static final java.lang.String DETAILS_UPDATEABLE
protected static final java.lang.String PREFERENCE
Constructor Detail |
---|
public DefaultSecurityRealm()
Method Detail |
---|
public void init()
public java.util.Collection<PebbleUserDetails> getUsers() throws SecurityRealmException
getUsers
in interface SecurityRealm
SecurityRealmException
public PebbleUserDetails getUser(java.lang.String username) throws SecurityRealmException
getUser
in interface SecurityRealm
username
- the username to find details for
SecurityRealmException
public void createUser(PebbleUserDetails pud) throws SecurityRealmException
createUser
in interface SecurityRealm
pud
- a PebbleUserDetails instance
SecurityRealmException
public void updateUser(PebbleUserDetails pud) throws SecurityRealmException
updateUser
in interface SecurityRealm
pud
- a PebbleUserDetails instance
SecurityRealmException
public void changePassword(java.lang.String username, java.lang.String password) throws SecurityRealmException
changePassword
in interface SecurityRealm
username
- the username of the userpassword
- the new password
SecurityRealmException
public void removeUser(java.lang.String username) throws SecurityRealmException
removeUser
in interface SecurityRealm
username
- the username of the user to remove
SecurityRealmException
protected java.io.File getFileForRealm() throws SecurityRealmException
SecurityRealmException
protected java.io.File getFileForUser(java.lang.String username) throws SecurityRealmException
SecurityRealmException
public Configuration getConfiguration()
public void setConfiguration(Configuration configuration)
public PasswordEncoder getPasswordEncoder()
public void setPasswordEncoder(PasswordEncoder passwordEncoder)
public SaltSource getSaltSource()
public void setSaltSource(SaltSource saltSource)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |