001/* 002 * Licensed to the Apache Software Foundation (ASF) under one 003 * or more contributor license agreements. See the NOTICE file 004 * distributed with this work for additional information 005 * regarding copyright ownership. The ASF licenses this file 006 * to you under the Apache License, Version 2.0 (the 007 * "License"); you may not use this file except in compliance 008 * with the License. You may obtain a copy of the License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, 013 * software distributed under the License is distributed on an 014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 015 * KIND, either express or implied. See the License for the 016 * specific language governing permissions and limitations 017 * under the License. 018 * 019 */ 020package org.apache.directory.server.config.beans; 021 022 023import org.apache.directory.server.config.ConfigurationElement; 024 025 026/** 027 * Base authenticator bean 028 * 029 * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a> 030 */ 031public abstract class AuthenticatorBean extends AdsBaseBean 032{ 033 /** The authenticator id */ 034 @ConfigurationElement(attributeType = "ads-authenticatorId", isRdn = true) 035 private String authenticatorId; 036 037 /** The base DN which will be the starting point from which we use the authenticator */ 038 @ConfigurationElement(attributeType = "ads-baseDn", isOptional = false) 039 protected String baseDn; 040 041 042 /** 043 * @return the authenticatorId 044 */ 045 public String getAuthenticatorId() 046 { 047 return authenticatorId; 048 } 049 050 051 /** 052 * @param authenticatorId the authenticatorId to set 053 */ 054 public void setAuthenticatorId( String authenticatorId ) 055 { 056 this.authenticatorId = authenticatorId; 057 } 058 059 060 /** 061 * @return the baseDn 062 */ 063 public String getBaseDn() 064 { 065 return baseDn; 066 } 067 068 069 /** 070 * @param baseDn the baseDn to set 071 */ 072 public void setBaseDn( String baseDn ) 073 { 074 this.baseDn = baseDn; 075 } 076}