net.sf.itcb.common.client.security.provider.MockCredentialsProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of itcb-common-client Show documentation
Show all versions of itcb-common-client Show documentation
This module is the common client module for calling webservices (server module). It defines all generic treatements that allows calling webservices
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 extends GrantedAuthority>) new ArrayList () );
return user;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy