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

org.cloudfoundry.client.v3.servicebrokers._BasicAuthentication Maven / Gradle / Ivy

The newest version!
package org.cloudfoundry.client.v3.servicebrokers;

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

import org.immutables.value.Value;

import com.fasterxml.jackson.annotation.JsonIgnore;

@Value.Immutable
abstract class _BasicAuthentication extends Authentication {

    @JsonIgnore
    abstract String getUsername();
    
    @JsonIgnore
    abstract String getPassword();
    
    @Value.Derived
    Map getCredentials() {
	Map credentials = new HashMap<>();
	credentials.put("username", getUsername());
	credentials.put("password", getPassword());
	return credentials;
    }

    @Value.Derived
    String getType() {
	return "basic";
    }

    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy