Package org.intermine.web.struts.oauth2
Class DefaultOAuthProvider
- java.lang.Object
-
- org.intermine.web.struts.oauth2.DefaultOAuthProvider
-
- All Implemented Interfaces:
OAuthProvider
public final class DefaultOAuthProvider extends java.lang.Object implements OAuthProvider
A representation of an OAuth provider which is one of the default providers provided for end-users. This list of currently supplied providers currently includes those supplied with the OLTU library.- Author:
- Alex Kalderimis
-
-
Constructor Summary
Constructors Constructor Description DefaultOAuthProvider(java.util.Properties properties, org.apache.oltu.oauth2.common.OAuthProviderType provider)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()
-
-
-
Constructor Detail
-
DefaultOAuthProvider
public DefaultOAuthProvider(java.util.Properties properties, org.apache.oltu.oauth2.common.OAuthProviderType provider)Construct a new provider.- Parameters:
properties- The properties where the client-id and client-secret can be looked up.provider- The OLTU provider configuration.
-
-
Method Detail
-
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.
-
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
-
-