1 19 20 package com.sslexplorer.security; 21 22 23 46 public class AuthenticationModuleDefinition { 47 48 50 private String name; 51 private Class moduleClass; 52 private String messageResourcesKey; 53 private boolean primary, secondary, system, primaryIfSecondaryExists; 54 55 65 public AuthenticationModuleDefinition(String name, Class moduleClass, String messageResourcesKey, boolean primary, boolean secondary, boolean system) { 66 this(name, moduleClass, messageResourcesKey, primary, secondary, system, false); 67 } 68 69 80 public AuthenticationModuleDefinition(String name, Class moduleClass, String messageResourcesKey, boolean primary, boolean secondary, boolean system, boolean primaryIfSecondaryExists) { 81 this.name = name; 82 this.moduleClass = moduleClass; 83 this.messageResourcesKey = messageResourcesKey; 84 this.primary = primary; 85 this.secondary = secondary; 86 this.system = system; 87 this.primaryIfSecondaryExists = primaryIfSecondaryExists; 88 } 89 90 96 public boolean getPrimary() { 97 return primary; 98 } 99 100 104 public boolean getPrimaryIfSecondardExists() { 105 return primaryIfSecondaryExists; 106 } 107 108 115 public boolean getSecondary() { 116 return secondary; 117 } 118 119 126 public boolean getSystem() { 127 return system; 128 } 129 130 136 public String getMessageResourcesKey() { 137 return messageResourcesKey; 138 } 139 140 145 public String getName() { 146 return name; 147 } 148 149 154 public Class getModuleClass() { 155 return moduleClass; 156 } 157 } | Popular Tags |