Package org.intermine.web.struts.oauth2
Class CustomOAuthProvider
- java.lang.Object
-
- org.intermine.web.struts.oauth2.CustomOAuthProvider
-
- All Implemented Interfaces:
OAuthProvider
public final class CustomOAuthProvider extends java.lang.Object implements OAuthProvider
A representation of an OAuth provider which has been configured entirely in web-properties.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description CustomOAuthProvider(java.util.Properties properties, java.lang.String providerName)Construct a new provider.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClientId()java.lang.StringgetClientSecret()MessageFormatgetMessageFormat()java.lang.StringgetName()ResponseTypegetResponseType()java.lang.StringgetTokenUrl()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceOAuthProvider- Returns:
- the name of the provider
-
getClientId
public java.lang.String getClientId()
- Specified by:
getClientIdin interfaceOAuthProvider- Returns:
- the configured client id for this provider
-
getClientSecret
public java.lang.String getClientSecret()
- Specified by:
getClientSecretin interfaceOAuthProvider- Returns:
- the configured client secret for this provider
-
getTokenUrl
public java.lang.String getTokenUrl()
- Specified by:
getTokenUrlin interfaceOAuthProvider- Returns:
- the URL for the token endpoint
-
getMessageFormat
public MessageFormat getMessageFormat()
- Specified by:
getMessageFormatin interfaceOAuthProvider- Returns:
- the message format this provider expects.
-
getResponseType
public ResponseType getResponseType()
- Specified by:
getResponseTypein interfaceOAuthProvider- Returns:
- the format in which this provider responds.
-
-