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

com.aeontronix.enhancedmule.tools.authentication.AccessTokenCredentials Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha4
Show newest version
/*
 * Copyright (c) Aeontronix 2020
 */

package com.aeontronix.enhancedmule.tools.authentication;

import java.util.HashMap;
import java.util.Map;

public class AccessTokenCredentials implements Credentials {
    private String id;
    private String secret;

    public AccessTokenCredentials() {
    }

    public AccessTokenCredentials(String id, String secret) {
        this.id = id;
        this.secret = secret;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    @Override
    public Map toAuthRequestPayload() {
        final HashMap map = new HashMap<>();
        map.put("id",id);
        map.put("secret",secret);
        return map;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy