|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoginProvider
The interface org.jboss.security.idm.LoginProvider represents a data source component that extracts data from Identity Stores like
LDAP repositories, ActiveX Directories, thirdparty identity management systems like SiteMinder, or even custom JDBC based systems.
It serves as an abstraction to Identity data related to authentication on the system.
Method Summary | |
---|---|
boolean |
exists(java.security.Principal principal)
Checks if the specified Principal exists in the system anymore or not |
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. |
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 |
Method Detail |
---|
java.lang.String getId() throws IdentityException
IdentityException
void setId(java.lang.String id) throws IdentityException
id
-
IdentityException
void setProperties(java.util.Properties properties) throws IdentityException
properties
-
IdentityException
Identity read(java.security.Principal principal) throws IdentityException
principal
-
IdentityException
Identity read(java.lang.String username) throws IdentityException
username
-
IdentityException
boolean exists(java.security.Principal principal) throws IdentityException
principal
-
IdentityException
boolean exists(java.lang.String username) throws IdentityException
username
-
IdentityException
boolean login(java.security.Principal principal, byte[] password) throws IdentityException
principal
- password
-
IdentityException
boolean login(java.lang.String username, byte[] password) throws IdentityException
username
- password
-
IdentityException
java.util.Collection readAllRoles() throws IdentityException
IdentityException
void processSSOLoginNotification(LoginContext loginContext) throws IdentityException
loginContext
-
IdentityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |