All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.notronix.etsy.api.authentication.model.Credentials Maven / Gradle / Ivy

There is a newer version: 3.0.0014
Show newest version
package com.notronix.etsy.api.authentication.model;

public interface Credentials
{
    String getToken();
    String getTokenSecret();
    String getLoginUrl();
    Boolean getCallbackConfirmed();

    static Credentials forKeyPair(final String token, final String secret) {
        return new Credentials()
        {
            @Override
            public String getToken() {
                return token;
            }

            @Override
            public String getTokenSecret() {
                return secret;
            }

            @Override
            public String getLoginUrl() {
                return null;
            }

            @Override
            public Boolean getCallbackConfirmed() {
                return null;
            }
        };
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy