io.gravitee.management.idp.ldap.lookup.LdapUser Maven / Gradle / Ivy
/**
* Copyright (C) 2015 The Gravitee team (http://gravitee.io)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.gravitee.management.idp.ldap.lookup;
import io.gravitee.management.idp.api.identity.User;
import io.gravitee.management.idp.ldap.LdapIdentityProvider;
import java.util.Map;
/**
* @author David BRASSELY (david at gravitee.io)
* @author GraviteeSource Team
*/
public class LdapUser implements User {
private final String username;
private String firstname, lastname, email, dn;
private Map properties;
LdapUser(String username) {
this.username = username;
}
@Override
public String getInternalId() {
return dn;
}
@Override
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
@Override
public String getFirstname() {
return firstname;
}
public void setFirstname(String firstname) {
this.firstname = firstname;
}
@Override
public String getUsername() {
return username;
}
@Override
public String getLastname() {
return lastname;
}
public void setLastname(String lastname) {
this.lastname = lastname;
}
public String getDn() {
return dn;
}
public void setDn(String dn) {
this.dn = dn;
}
@Override
public Map getProperties() {
return properties;
}
public void setProperties(Map properties) {
this.properties = properties;
}
@Override
public String getSource() {
return LdapIdentityProvider.PROVIDER_TYPE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy