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

ca.uhn.hl7v2.hoh.auth.SingleCredentialClientCallback Maven / Gradle / Ivy

There is a newer version: 2.5.1
Show newest version
package ca.uhn.hl7v2.hoh.auth;

import ca.uhn.hl7v2.hoh.api.IAuthorizationClientCallback;


/**
 * Authorization Callback which validates a single username and password
 */
public class SingleCredentialClientCallback implements IAuthorizationClientCallback {

	private String myUsername;
	private String myPassword;

	public SingleCredentialClientCallback(String theUsername, String thePassword) {
		myUsername = theUsername;
		myPassword = thePassword;
	}

	public String provideUsername(String theUri) {
		return myUsername;
	}

	public String providePassword(String theUri) {
		return myPassword;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy