Package org.apache.ofbiz.passport.util
Class PassportUtil
- java.lang.Object
-
- org.apache.ofbiz.passport.util.PassportUtil
-
public class PassportUtil extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ACCEPT_HEADER
static java.lang.String
ApiIdLabel
static java.lang.String
ApiKeyLabel
static java.lang.String
AppIdLabel
static java.lang.String
AppKeyLabel
static java.lang.String
APPLICATION_JSON
static java.lang.String
AppSecretLabel
static java.lang.String
AUTHORIZATION_HEADER
static java.lang.String
AuthorizationCodeGrantType
static java.lang.String
ClientIdLabel
static java.lang.String
COMMON_APP_KEY
static java.lang.String
COMMON_APP_SECRET
static java.lang.String
COMMON_CLIENT_ID
static java.lang.String
COMMON_CLIENT_SECRET
static java.lang.String
COMMON_CODE
static java.lang.String
COMMON_ERROR
static java.lang.String
COMMON_ERROR_DESCRIPTION
static java.lang.String
COMMON_RETURN_RUL
static java.lang.String
COMMON_SCOPE
static java.lang.String
COMMON_STATE
static java.lang.String
ContentTypeLabel
static java.lang.String
ContentTypeParam
static java.lang.String
GrantTypeLabel
static java.lang.String
GrantTypeParam
static java.lang.String
module
static java.lang.String
RESTApiEndpointLabel
static java.lang.String
ReturnUrlLabel
static java.lang.String
SecretKeyLabel
static java.lang.String
SecretLabel
static org.apache.http.client.config.RequestConfig
StandardRequestConfig
static java.lang.String
TokenEndpointLabel
static java.lang.String
UserProfileUrlLabel
-
Constructor Summary
Constructors Modifier Constructor Description protected
PassportUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getEnvPrefixByHost(javax.servlet.http.HttpServletRequest request)
static PassportUtil
getInstance()
-
-
-
Field Detail
-
module
public static final java.lang.String module
-
ClientIdLabel
public static final java.lang.String ClientIdLabel
- See Also:
- Constant Field Values
-
SecretLabel
public static final java.lang.String SecretLabel
- See Also:
- Constant Field Values
-
ReturnUrlLabel
public static final java.lang.String ReturnUrlLabel
- See Also:
- Constant Field Values
-
TokenEndpointLabel
public static final java.lang.String TokenEndpointLabel
- See Also:
- Constant Field Values
-
GrantTypeLabel
public static final java.lang.String GrantTypeLabel
- See Also:
- Constant Field Values
-
ContentTypeLabel
public static final java.lang.String ContentTypeLabel
- See Also:
- Constant Field Values
-
AUTHORIZATION_HEADER
public static final java.lang.String AUTHORIZATION_HEADER
- See Also:
- Constant Field Values
-
UserProfileUrlLabel
public static final java.lang.String UserProfileUrlLabel
- See Also:
- Constant Field Values
-
GrantTypeParam
public static final java.lang.String GrantTypeParam
- See Also:
- Constant Field Values
-
ContentTypeParam
public static final java.lang.String ContentTypeParam
- See Also:
- Constant Field Values
-
ACCEPT_HEADER
public static final java.lang.String ACCEPT_HEADER
- See Also:
- Constant Field Values
-
APPLICATION_JSON
public static final java.lang.String APPLICATION_JSON
- See Also:
- Constant Field Values
-
RESTApiEndpointLabel
public static final java.lang.String RESTApiEndpointLabel
- See Also:
- Constant Field Values
-
COMMON_CODE
public static final java.lang.String COMMON_CODE
- See Also:
- Constant Field Values
-
COMMON_SCOPE
public static final java.lang.String COMMON_SCOPE
- See Also:
- Constant Field Values
-
AuthorizationCodeGrantType
public static final java.lang.String AuthorizationCodeGrantType
- See Also:
- Constant Field Values
-
COMMON_STATE
public static final java.lang.String COMMON_STATE
- See Also:
- Constant Field Values
-
COMMON_ERROR
public static final java.lang.String COMMON_ERROR
- See Also:
- Constant Field Values
-
COMMON_ERROR_DESCRIPTION
public static final java.lang.String COMMON_ERROR_DESCRIPTION
- See Also:
- Constant Field Values
-
ApiKeyLabel
public static final java.lang.String ApiKeyLabel
- See Also:
- Constant Field Values
-
SecretKeyLabel
public static final java.lang.String SecretKeyLabel
- See Also:
- Constant Field Values
-
COMMON_CLIENT_ID
public static final java.lang.String COMMON_CLIENT_ID
- See Also:
- Constant Field Values
-
COMMON_RETURN_RUL
public static final java.lang.String COMMON_RETURN_RUL
- See Also:
- Constant Field Values
-
COMMON_CLIENT_SECRET
public static final java.lang.String COMMON_CLIENT_SECRET
- See Also:
- Constant Field Values
-
ApiIdLabel
public static final java.lang.String ApiIdLabel
- See Also:
- Constant Field Values
-
AppKeyLabel
public static final java.lang.String AppKeyLabel
- See Also:
- Constant Field Values
-
AppSecretLabel
public static final java.lang.String AppSecretLabel
- See Also:
- Constant Field Values
-
AppIdLabel
public static final java.lang.String AppIdLabel
- See Also:
- Constant Field Values
-
COMMON_APP_KEY
public static final java.lang.String COMMON_APP_KEY
- See Also:
- Constant Field Values
-
COMMON_APP_SECRET
public static final java.lang.String COMMON_APP_SECRET
- See Also:
- Constant Field Values
-
StandardRequestConfig
public static final org.apache.http.client.config.RequestConfig StandardRequestConfig
-
-
Method Detail
-
getInstance
public static PassportUtil getInstance()
-
getEnvPrefixByHost
public static java.lang.String getEnvPrefixByHost(javax.servlet.http.HttpServletRequest request)
-
-