|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.platform.integration.extension.AbstractIntegrationProvider
blackboard.platform.integration.extension.AbstractAuthenticationProvider
public abstract class AbstractAuthenticationProvider
Base class that all AuthenticationProvider implementations should extend to ensure binary compatibility with future releases.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface blackboard.platform.integration.provider.IntegrationProvider |
|---|
IntegrationProvider.ProviderType |
| Constructor Summary | |
|---|---|
AbstractAuthenticationProvider()
|
|
| Method Summary | |
|---|---|
java.util.Set<Id> |
checkActivity(java.util.Set<Id> userIds)
Used to confirm which user sessions have had recent activity on the external LMS. |
void |
flushCachedCredentials(Id userId)
When this is called, the provider should clear any internally cached information about the specified user's session. |
java.util.Set<javax.servlet.http.Cookie> |
getCookies(Id userId)
Requests updated cookies for the user's external LMS session. |
java.util.Set<javax.servlet.http.Cookie> |
getCookies(Id userId,
java.lang.String baseUrl)
Requests updated cookies for the user's external LMS session. |
java.lang.String |
getSharedCookieDomain(Id userId)
Determines the cookie domain shared by Academic Suite and the external LMS. |
boolean |
login(Id userId,
java.lang.String password)
Pass the user's password to the external LMS for validation. |
void |
logout(Id userId)
Notifies the external LMS that a user has logged out of Academic Suite. |
void |
setCookies(Id userId,
java.util.Set<javax.servlet.http.Cookie> cookies)
Invoked by the integration framework when it detects any new cookies on the browser for the current integration. |
| Methods inherited from class blackboard.platform.integration.extension.AbstractIntegrationProvider |
|---|
getIntegrationContext, getIntegrationId, initializeProvider |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface blackboard.platform.integration.provider.IntegrationProvider |
|---|
initializeProvider |
| Constructor Detail |
|---|
public AbstractAuthenticationProvider()
| Method Detail |
|---|
public java.util.Set<Id> checkActivity(java.util.Set<Id> userIds)
AuthenticationProviderIf the remote LMS does not keep track of session state, you may return null here. When the user's Academic Suite session times out, they will be logged out automatically.
checkActivity in interface AuthenticationProvideruserIds - List of User Ids to check.
public void flushCachedCredentials(Id userId)
AuthenticationProvider
flushCachedCredentials in interface AuthenticationProvideruserId - Id of the current Userpublic java.util.Set<javax.servlet.http.Cookie> getCookies(Id userId)
AuthenticationProvider
getCookies in interface AuthenticationProvideruserId - Id of the current User
public java.util.Set<javax.servlet.http.Cookie> getCookies(Id userId,
java.lang.String baseUrl)
AuthenticationProviderIt is recommended that the provider maintain an internal cache of these cookies, as this method is called relatively often.
getCookies in interface AuthenticationProvideruserId - Id of the current UserbaseUrl - Current base url for the user's session - to be used for all callback URLs into ASpublic java.lang.String getSharedCookieDomain(Id userId)
AuthenticationProviderContentSystemProvider is implemented.
getSharedCookieDomain in interface AuthenticationProvideruserId - Id of the current User
public boolean login(Id userId,
java.lang.String password)
throws PasswordChangeRequiredException
AuthenticationProvider
Note that this method will only be called if the current integration is the user's primary integration. For
secondary integrations, the first interaction between AuthenticationProvider and a user will be through
AuthenticationProvider.getCookies(blackboard.persist.Id, String) when a user tries to access integration-specific content.
login in interface AuthenticationProvideruserId - Id of the current Userpassword - Password entered by the user.
PasswordChangeRequiredException - Indicates that the password was valid but that it needs to be changed.
Normally thrown when the current password has expired.
PasswordChangeForcedException - Indicates that the password was valid but that it needs to be changed.
Normally thrown when passwords must be changed after the first login.public void logout(Id userId)
AuthenticationProviderAcademic Suite will handle revoking the user's current session cookies.
logout in interface AuthenticationProvideruserId - Id of the current User
public void setCookies(Id userId,
java.util.Set<javax.servlet.http.Cookie> cookies)
AuthenticationProviderAuthenticationProvider.getCookies(Id, String) method.
If the provider maintains an internal cache, it is recommended that the cache be updated with these new cookie values.
setCookies in interface AuthenticationProvideruserId - Id of the current Usercookies - Updated cookies to store
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||