|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.openid.server.manager.openid.OpenIDAuthenticationManagerGeneric
public class OpenIDAuthenticationManagerGeneric
Constructor Summary | |
---|---|
OpenIDAuthenticationManagerGeneric()
|
Method Summary | |
---|---|
OpenIDAuthResponse |
allowRequest(User user,
long profileID,
OpenIDAuthRequest authReq,
boolean alwaysAllow)
Process a request if the "allow" or "allow always" action is taken by the user when a site has requested authentication. |
OpenIDAuthResponse |
autoAllowRequest(User user,
OpenIDAuthRequest authReq)
Processes a request if the "allow_always" flag has been set for the requesting site. |
OpenIDAuthResponse |
checkImmediate(SOAPPrincipal principal,
java.util.Locale locale,
OpenIDAuthRequest authReq)
A convenience wrapper for the autoAllowRequest method. |
protected void |
createAuthRecord(User user,
Site site,
AuthAction authAction)
Creates an AuthRecord for the user/site/action combination. |
OpenIDAuthResponse |
denyRequest(User user,
OpenIDAuthRequest authReq)
Process a request if the "deny" action is taken by the user when a site has requested authentication. |
AuthRecordDAO |
getAuthRecordDAO()
|
OpenIDPropertyManager |
getOpenIDPropertyManager()
|
SiteManager |
getSiteManager()
|
UserManager |
getUserManager()
|
void |
setAuthRecordDAO(AuthRecordDAO authRecordDAO)
|
void |
setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager)
|
void |
setSiteManager(SiteManager siteManager)
|
void |
setUserManager(UserManager userManager)
|
void |
validateRequest(User user,
OpenIDAuthRequest authReq)
Validates the OpenID authentication request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OpenIDAuthenticationManagerGeneric()
Method Detail |
---|
public void validateRequest(User user, OpenIDAuthRequest authReq) throws InvalidRequestException, SiteDisallowedException, IdentifierViolationException
validateRequest
in interface OpenIDAuthenticationManager
user
- logged in user.authReq
- OpenID authentication request.
InvalidRequestException
- if authReq is null or the return_to URL is invalid/malformed.
SiteDisallowedException
- if the site is disallowed by whitelist/blacklist or the site is localhost and local return_to URLs have been disallowed.
IdentifierViolationException
- if the principal does not own the OpenID identifier.public OpenIDAuthResponse checkImmediate(SOAPPrincipal principal, java.util.Locale locale, OpenIDAuthRequest authReq)
checkImmediate
in interface OpenIDAuthenticationManager
principal
- principal corresponding to logged in user.locale
- locale of the logged in user.authReq
- authentication request of the user.
public OpenIDAuthResponse autoAllowRequest(User user, OpenIDAuthRequest authReq)
autoAllowRequest
in interface OpenIDAuthenticationManager
user
- user processing request.authReq
- OpenIDAuthRequest being processed.
public OpenIDAuthResponse denyRequest(User user, OpenIDAuthRequest authReq)
denyRequest
in interface OpenIDAuthenticationManager
user
- user processing request.authReq
- OpenIDAuthRequest being processed.
public OpenIDAuthResponse allowRequest(User user, long profileID, OpenIDAuthRequest authReq, boolean alwaysAllow)
allowRequest
in interface OpenIDAuthenticationManager
user
- user processing request.profileID
- ID of profile containing attributes to be used in response.authReq
- OpenIDAuthRequest being processed.alwaysAllow
- true if the user wants to trust the site.
protected void createAuthRecord(User user, Site site, AuthAction authAction)
user
- user.site
- site.authAction
- AuthAction type.public SiteManager getSiteManager()
public void setSiteManager(SiteManager siteManager)
public OpenIDPropertyManager getOpenIDPropertyManager()
public void setOpenIDPropertyManager(OpenIDPropertyManager openIDPropertyManager)
public AuthRecordDAO getAuthRecordDAO()
public void setAuthRecordDAO(AuthRecordDAO authRecordDAO)
public UserManager getUserManager()
public void setUserManager(UserManager userManager)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |