|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
fr.paris.lutece.plugins.mylutece.modules.oauth.authentication.OAuthAuthentication
public class OAuthAuthentication
OAuthAuthentication. (version 1.0a).
Uses httpAccess.* properties to perform HTTP requests.
| Constructor Summary | |
|---|---|
OAuthAuthentication()
|
|
| Method Summary | |
|---|---|
String |
getAccessTokenEndpointUrl()
The access token url |
fr.paris.lutece.portal.service.security.LuteceUser |
getAnonymousUser()
|
String |
getAuthorizeWebsiteUrl()
Gets The authorize/authenticate url |
String |
getAuthServiceName()
|
String |
getAuthType(javax.servlet.http.HttpServletRequest request)
|
String |
getConsumerKey()
Returns the consumer key |
String |
getConsumerSecret()
Returns the consumer secret |
String |
getCredentialFormat()
Gets the credentials format |
String |
getCredentialUrl()
credential url |
String |
getIconUrl()
|
String |
getName()
|
String |
getPluginName()
|
String |
getRequestTokenEndpointUrl()
The request token url |
OAuthUser |
getUser(javax.servlet.http.HttpServletRequest request)
Gets the user |
boolean |
isDelegatedAuthentication()
|
boolean |
isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
|
fr.paris.lutece.portal.service.security.LuteceUser |
login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request)
|
void |
logout(fr.paris.lutece.portal.service.security.LuteceUser user)
|
void |
setAccessTokenEndpointUrl(String strAccessTokenEndpointUrl)
Access token url |
void |
setAuthorizeWebsiteUrl(String strAuthorizeWebsiteUrl)
The authorize/authenticate url |
void |
setAuthServiceName(String strAuthServiceName)
Sets the auth service name |
void |
setConsumerKey(String strConsumerKey)
Sets the consumer key |
void |
setConsumerSecret(String strConsumerSecret)
Consumer secret |
void |
setCredentialFormat(String strCredentialFormat)
Credentials format |
void |
setCredentialUrl(String strCredentialUrl)
Set the credential url |
void |
setIconUrl(String strIconUrl)
Sets the icon url |
void |
setName(String strName)
Set the name |
void |
setRequestTokenEndpointUrl(String strRequestTokenEndpointUrl)
The request token url |
String |
toString()
|
| Methods inherited from class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication |
|---|
findResetPassword, getAccessControledTemplate, getAccessDeniedTemplate, getDoLoginUrl, getDoLogoutUrl, getHttpAuthenticatedUser, getLoginPageUrl, getLostLoginPageUrl, getLostPasswordPageUrl, getNewAccountPageUrl, getResetPasswordPageUrl, getRolesByUser, getUser, getUsers, getViewAccountPageUrl, isExternalAuthentication, isMultiAuthenticationSupported, isUsersListAvailable, updateDateLastLogin |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OAuthAuthentication()
| Method Detail |
|---|
public fr.paris.lutece.portal.service.security.LuteceUser getAnonymousUser()
public String getAuthServiceName()
public String getAuthType(javax.servlet.http.HttpServletRequest request)
public String getIconUrl()
getIconUrl in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationgetIconUrl in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getName()
public String getPluginName()
public boolean isUserInRole(fr.paris.lutece.portal.service.security.LuteceUser user,
javax.servlet.http.HttpServletRequest request,
String strRole)
public boolean isDelegatedAuthentication()
isDelegatedAuthentication in interface fr.paris.lutece.portal.service.security.LuteceAuthenticationisDelegatedAuthentication in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthentication
public fr.paris.lutece.portal.service.security.LuteceUser login(String strUserName,
String strUserPassword,
javax.servlet.http.HttpServletRequest request)
throws LoginException,
fr.paris.lutece.portal.service.security.LoginRedirectException
LoginException
fr.paris.lutece.portal.service.security.LoginRedirectExceptionpublic OAuthUser getUser(javax.servlet.http.HttpServletRequest request)
request - the reuqest
public void logout(fr.paris.lutece.portal.service.security.LuteceUser user)
public void setAuthServiceName(String strAuthServiceName)
strAuthServiceName - the service namepublic void setName(String strName)
strName - the service keypublic void setIconUrl(String strIconUrl)
strIconUrl - icon urlpublic String getRequestTokenEndpointUrl()
public void setRequestTokenEndpointUrl(String strRequestTokenEndpointUrl)
strRequestTokenEndpointUrl - the request token urlpublic String getAccessTokenEndpointUrl()
public void setAccessTokenEndpointUrl(String strAccessTokenEndpointUrl)
strAccessTokenEndpointUrl - the access token urlpublic String getAuthorizeWebsiteUrl()
public void setAuthorizeWebsiteUrl(String strAuthorizeWebsiteUrl)
strAuthorizeWebsiteUrl - the authorize urlpublic String getConsumerKey()
public void setConsumerKey(String strConsumerKey)
strConsumerKey - the consumer keypublic String getConsumerSecret()
public void setConsumerSecret(String strConsumerSecret)
strConsumerSecret - consumer secretpublic String toString()
toString in class fr.paris.lutece.plugins.mylutece.authentication.PortalAuthenticationpublic String getCredentialUrl()
public void setCredentialUrl(String strCredentialUrl)
strCredentialUrl - credential urlpublic String getCredentialFormat()
public void setCredentialFormat(String strCredentialFormat)
strCredentialFormat - strCredentialFormat
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||