1 17 package org.apache.ldap.server.authn; 18 19 import java.util.Enumeration ; 20 import java.util.Properties ; 21 22 27 public class GenericAuthenticatorConfig implements AuthenticatorConfig { 28 29 private String authenticatorName; 30 private String authenticatorClass; 31 private AuthenticatorContext authenticatorContext; 32 private Properties properties = new Properties (); 33 34 public String getAuthenticatorName() 35 { 36 return authenticatorName; 37 } 38 39 public void setAuthenticatorName( String authenticatorName ) 40 { 41 this.authenticatorName = authenticatorName; 42 } 43 44 public String getAuthenticatorClass() 45 { 46 return authenticatorClass; 47 } 48 49 public void setAuthenticatorClass( String authenticatorClass ) 50 { 51 this.authenticatorClass = authenticatorClass; 52 } 53 54 public Properties getProperties() 55 { 56 return properties; 57 } 58 59 public void setProperties( Properties properties ) 60 { 61 this.properties = properties; 62 } 63 64 public String getInitParameter( String name ) 65 { 66 return properties.getProperty( name ); 67 } 68 69 public Enumeration getInitParameterNames() 70 { 71 return properties.keys(); 72 } 73 74 public AuthenticatorContext getAuthenticatorContext() 75 { 76 return authenticatorContext; 77 } 78 79 public void setAuthenticatorContext( AuthenticatorContext authenticatorContext ) 80 { 81 this.authenticatorContext = authenticatorContext; 82 } 83 } 84 | Popular Tags |