|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.idm.ldap.LDAPIdentityProvider
public class LDAPIdentityProvider
LDAPIdentityProvider is a built-in implementation of a ProvisioningProvider/LoginProvider that accessed data stored in an LDAP repository
This implementation supports the following standard LDAP schemas:
User Identity Information stored in InetOrgPerson schema
Role Information stored in GroupOfUniqueNames schema
At this time, this implementation is tested to work with OpenLDAP and RedHat Directory Server.
Constructor Summary | |
---|---|
LDAPIdentityProvider()
|
Method Summary | |
---|---|
void |
activate(Identity identity)
Activates a user account |
void |
activate(java.lang.String username)
Activates a user account |
void |
addRole(Role role)
Adds a new role to the system |
void |
deactivate(Identity identity)
Deactivates a user account |
void |
deactivate(java.lang.String username)
Deactivates a user account |
boolean |
exists(java.security.Principal principal)
Checks if the specified Principal exists in the system anymore or not |
boolean |
exists(Role role)
Checks if the specified role exists in the system |
boolean |
exists(java.lang.String username)
Checks if the specified username exists in the system anymore or not |
java.lang.String |
getId()
Returns an id that uniquely identifies the LoginProvider plugged into the JBoss SSO system. |
boolean |
login(java.security.Principal principal,
byte[] password)
Checks if the specified Principal should successfully authenticated using the specified password |
boolean |
login(java.lang.String username,
byte[] password)
Checks if the specified username should be successfully authenticated using the specified password |
void |
processSSOLoginNotification(LoginContext loginContext)
This notification is received from the SSO Engine when the engine performs an automatic logic based on a trusted assertion received from a partner site. |
Identity |
read(java.security.Principal principal)
Returns the Identity data for the specified Principal |
Identity |
read(java.lang.String username)
Returns the Identity data for the specified username |
java.util.Collection |
readAllRoles()
Return all the authorization roles registered in the system. |
Role |
readRole(java.lang.String roleName)
Reads role information for the specified role name |
void |
register(Identity identity)
Registers a new user into the system |
void |
remove(Identity identity)
Removes a user from the system |
void |
remove(java.lang.String username)
Removes a user from the system |
void |
removeRole(Role role)
Removes a role from the system |
void |
resetPassword(java.lang.String username,
byte[] password)
Resets the password of the specified user |
void |
setId(java.lang.String id)
Sets the unique id for the LoginProvider |
void |
setProperties(java.util.Properties properties)
Sets any properties like LDAP URLs, JDBC configuration, etc needed to configure this particular implementation of the LoginProvider |
void |
update(Identity identity)
Updates the user profile data |
void |
updateRole(Role role)
Updates the specified role |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LDAPIdentityProvider()
Method Detail |
---|
public java.lang.String getId()
getId
in interface LoginProvider
IdentityException
public void setId(java.lang.String id)
LoginProvider
setId
in interface LoginProvider
id
- public void setProperties(java.util.Properties properties) throws IdentityException
setProperties
in interface LoginProvider
properties
-
IdentityException
public void activate(Identity identity) throws IdentityException
activate
in interface ProvisioningProvider
identity
- data of the user account that should be activated
IdentityException
public void activate(java.lang.String username) throws IdentityException
activate
in interface ProvisioningProvider
username
- of the user account that should be activated
IdentityException
public void deactivate(Identity identity) throws IdentityException
deactivate
in interface ProvisioningProvider
identity
- data of the user account that should be deactivated
IdentityException
public void deactivate(java.lang.String username) throws IdentityException
deactivate
in interface ProvisioningProvider
username
- of the user account that should be deactivated
IdentityException
public boolean exists(java.security.Principal principal) throws IdentityException
exists
in interface LoginProvider
principal
-
IdentityException
public boolean exists(java.lang.String username) throws IdentityException
exists
in interface LoginProvider
username
-
IdentityException
public boolean login(java.security.Principal principal, byte[] password) throws IdentityException
login
in interface LoginProvider
principal
- password
-
IdentityException
public boolean login(java.lang.String username, byte[] password) throws IdentityException
login
in interface LoginProvider
username
- password
-
IdentityException
public Identity read(java.security.Principal principal) throws IdentityException
read
in interface LoginProvider
principal
-
IdentityException
public Identity read(java.lang.String username) throws IdentityException
read
in interface LoginProvider
username
-
IdentityException
public void register(Identity identity) throws IdentityException
register
in interface ProvisioningProvider
identity
-
IdentityException
public void remove(Identity identity) throws IdentityException
remove
in interface ProvisioningProvider
identity
-
IdentityException
public void remove(java.lang.String username) throws IdentityException
remove
in interface ProvisioningProvider
username
-
IdentityException
public void update(Identity identity) throws IdentityException
update
in interface ProvisioningProvider
identity
-
IdentityException
public void resetPassword(java.lang.String username, byte[] password) throws IdentityException
resetPassword
in interface ProvisioningProvider
username
- password
-
IdentityException
public boolean exists(Role role) throws IdentityException
exists
in interface ProvisioningProvider
role
-
IdentityException
public Role readRole(java.lang.String roleName) throws IdentityException
readRole
in interface ProvisioningProvider
roleName
-
IdentityException
public java.util.Collection readAllRoles() throws IdentityException
readAllRoles
in interface LoginProvider
IdentityException
public void addRole(Role role) throws IdentityException
addRole
in interface ProvisioningProvider
role
-
IdentityException
public void removeRole(Role role) throws IdentityException
removeRole
in interface ProvisioningProvider
role
-
IdentityException
public void updateRole(Role role) throws IdentityException
updateRole
in interface ProvisioningProvider
role
-
IdentityException
public void processSSOLoginNotification(LoginContext loginContext) throws IdentityException
processSSOLoginNotification
in interface LoginProvider
loginContext
-
IdentityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |