Class 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 Detail

      • StateDecoder

        public StateDecoder​(String state)
        Parameters:
        state - the raw state or null if there's no state.
    • Method Detail

      • 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.