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

net.sf.itcb.common.client.security.provider.MockCredentialsProvider Maven / Gradle / Ivy

Go to download

This module is the common client module for calling webservices (server module). It defines all generic treatements that allows calling webservices

There is a newer version: 0.7.3
Show newest version
package net.sf.itcb.common.client.security.provider;

import java.util.ArrayList;
import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class MockCredentialsProvider implements
		SecurementCredentialsProvider {

	private String username;
	private String password;
	
	
	public void setUsername(String username) {
		this.username = username;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public User getUserCredentials() throws Exception {
		User user = new User(username, password, true, true, true, true, (Collection) new ArrayList () );
		return user;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy