public class StateEncoder extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ON_COMPLETE_REDIRECT_TO_PARAM_NAME |
static String |
ON_COMPLETE_REDIRECT_TO_PARAM_NAME_ASSIGN |
static String |
RESOURCE_OWNER_PARAM_NAME |
static String |
RESOURCE_OWNER_PARAM_NAME_ASSIGN |
Constructor and Description |
---|
StateEncoder(String originalState) |
Modifier and Type | Method and Description |
---|---|
void |
encodeOnCompleteRedirectToInState(String onCompleteRedirectToValue)
Creates and state value with the redirect url to send the user when the oauth dance is complete
|
void |
encodeResourceOwnerIdInState(String resourceOwnerId)
Creates an state value with the resource owner id encoded in it.
|
String |
getEncodedState() |
public static final String RESOURCE_OWNER_PARAM_NAME
public static final String RESOURCE_OWNER_PARAM_NAME_ASSIGN
public static final String ON_COMPLETE_REDIRECT_TO_PARAM_NAME
public static final String ON_COMPLETE_REDIRECT_TO_PARAM_NAME_ASSIGN
public StateEncoder(String originalState)
public void encodeResourceOwnerIdInState(String resourceOwnerId)
resourceOwnerId
- the resourceOwnerId to encodepublic void encodeOnCompleteRedirectToInState(String onCompleteRedirectToValue)
onCompleteRedirectToValue
- the redirect url to encodepublic String getEncodedState()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.