|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.security.idm.demo.DemoLoginProvider
public class DemoLoginProvider
Constructor Summary | |
---|---|
DemoLoginProvider()
|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DemoLoginProvider()
Method Detail |
---|
public java.lang.String getId() throws IdentityException
LoginProvider
getId
in interface LoginProvider
IdentityException
public void setId(java.lang.String id) throws IdentityException
setId
in interface LoginProvider
id
-
IdentityException
public void setProperties(java.util.Properties properties) throws IdentityException
setProperties
in interface LoginProvider
properties
-
IdentityException
public Identity read(java.security.Principal principal) throws IdentityException
LoginProvider
read
in interface LoginProvider
IdentityException
public Identity read(java.lang.String username) throws IdentityException
LoginProvider
read
in interface LoginProvider
IdentityException
public boolean exists(java.security.Principal principal) throws IdentityException
LoginProvider
exists
in interface LoginProvider
IdentityException
public boolean exists(java.lang.String username) throws IdentityException
LoginProvider
exists
in interface LoginProvider
IdentityException
public boolean login(java.security.Principal principal, byte[] password) throws IdentityException
LoginProvider
login
in interface LoginProvider
IdentityException
public boolean login(java.lang.String username, byte[] password) throws IdentityException
LoginProvider
login
in interface LoginProvider
IdentityException
public java.util.Collection readAllRoles() throws IdentityException
LoginProvider
readAllRoles
in interface LoginProvider
IdentityException
public void processSSOLoginNotification(LoginContext loginContext) throws IdentityException
LoginProvider
processSSOLoginNotification
in interface LoginProvider
IdentityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |