- java.lang.Object
-
- org.mule.oauth.client.internal.state.StateDecoder
-
public class StateDecoder extends Object
Decoder for the oauth state. Allows to retrieve the parameters encoded in an state and to retrieve the original state.- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description StateDecoder(String state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringdecodeOnCompleteRedirectTo()Decodes the resource owner id from an encoded state usingStateEncoder.encodeResourceOwnerIdInState(java.lang.String)StringdecodeOriginalState()Decodes the original state from an encoded state usingStateEncoder.encodeResourceOwnerIdInState(java.lang.String)StringdecodeResourceOwnerId()Decodes the resource owner id from an encoded state using #encodeResourceOwnerIdInState
-
-
-
Constructor Detail
-
StateDecoder
public StateDecoder(String state)
- Parameters:
state- the raw state or null if there's no state.
-
-
Method Detail
-
decodeOriginalState
public String decodeOriginalState()
Decodes the original state from an encoded state usingStateEncoder.encodeResourceOwnerIdInState(java.lang.String)- Returns:
- the original state, null if the original state was empty.
-
decodeResourceOwnerId
public String decodeResourceOwnerId()
Decodes the resource owner id from an encoded state using #encodeResourceOwnerIdInState- Returns:
- the resource owner id, null if there's no oauth state id encoded in it.
-
decodeOnCompleteRedirectTo
public String decodeOnCompleteRedirectTo()
Decodes the resource owner id from an encoded state usingStateEncoder.encodeResourceOwnerIdInState(java.lang.String)- Returns:
- the resource owner id, null if there's no oauth state id encoded in it.
-
-