001package org.syncany.plugins.transfer.oauth;
002
003/**
004 * A {@link OAuthTokenFinish} is a container to hold a pair of a token and a CSRF field.
005 *
006 * @author Christian Roth (christian.roth@port17.de)
007 */
008
009public class OAuthTokenFinish {
010
011        private final String token;
012        private final String csrfState;
013
014        /**
015         * Create a new, immutable pair of token and CSRF state.
016         *
017         * @param token required
018         * @param csrfState optional
019         */
020        OAuthTokenFinish(String token, String csrfState) {
021                this.token = token;
022                this.csrfState = csrfState;
023        }
024
025        public String getToken() {
026                return token;
027        }
028
029        public String getCsrfState() {
030                return csrfState;
031        }
032
033}