|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.csu.config.CiscoRouterConfigParser
com.foxsmart.csu.config.CiscoRouterConfigComponent
com.foxsmart.csu.config.global.line.LoginComponent
public class LoginComponent
The login class determines if password checking is enabled. If this component is added, then checking is enabled. The additional method for checking the password information is configurable using the setValidationMechanism method.
| Field Summary | |
|---|---|
static java.lang.String |
AUTHENTICATION
|
static java.lang.String |
LOCAL
|
static java.lang.String |
LOGIN
|
static java.lang.String |
TACACS
|
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigComponent |
|---|
commentComponent, componentMap, log, parentComponent |
| Fields inherited from class com.foxsmart.csu.config.CiscoRouterConfigParser |
|---|
NO, tokenIndex |
| Constructor Summary | |
|---|---|
LoginComponent()
Constructs a login object. |
|
| Method Summary | |
|---|---|
java.util.List |
buildFromIos(java.util.List configLines)
Parse and populate the specific CiscoRouterComponent object based on the passed in individual lines of the IOS configuration. |
Commands |
generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
Generates the IOS configuration commands to delete this component. |
Commands |
generateIos()
Returns the IOS configuration commands for this component. |
java.lang.String |
getAuthenticationListName()
Gets the authentication list name. |
boolean |
getNoLogin()
Gets whether login is not required. |
ValidationMechanismEnum |
getValidationMechanism()
Gets the validation mechanism. |
void |
setAuthenticationListName(java.lang.String authenticationListName)
Sets the authentication list name. |
void |
setNoLogin(boolean noLogin)
Sets whether login is required. |
void |
setValidationMechanism(ValidationMechanismEnum validationMechanism)
Sets the validation mechanism. |
void |
validate()
Validates this object to ensure it contains a valid IOS configuration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String LOGIN
public static final java.lang.String LOCAL
public static final java.lang.String TACACS
public static final java.lang.String AUTHENTICATION
| Constructor Detail |
|---|
public LoginComponent()
| Method Detail |
|---|
public void setValidationMechanism(ValidationMechanismEnum validationMechanism)
validationMechanism - The validation mechanism.public ValidationMechanismEnum getValidationMechanism()
public java.lang.String getAuthenticationListName()
public void setAuthenticationListName(java.lang.String authenticationListName)
authenticationListName - the authentication list name.public boolean getNoLogin()
public void setNoLogin(boolean noLogin)
noLogin - True if login is required or false if not.
public java.util.List buildFromIos(java.util.List configLines)
throws InvalidConfigurationException
CiscoRouterConfigComponent
buildFromIos in class CiscoRouterConfigComponentconfigLines - The list of IOS configuration lines.
InvalidConfigurationException - if the IOS configuration can not be parsed for any reason.CiscoRouterConfigComponent
public void validate()
throws InvalidConfigurationException
CiscoRouterConfigComponent
validate in class CiscoRouterConfigComponentInvalidConfigurationException - if the configuration is invalid.CiscoRouterConfigComponent
public Commands generateIos()
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateIos in class CiscoRouterConfigComponentInvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.CiscoRouterConfigComponent
public Commands generateDeleteIos(CiscoRouterConfig updatedCiscoRouterConfig)
throws InvalidConfigurationException
CiscoRouterConfigComponent
generateDeleteIos in class CiscoRouterConfigComponentupdatedCiscoRouterConfig - the updated Cisco router configuration.
InvalidConfigurationException - if the IOS configuration is invalid and the IOS string can not be generated.
The validate() method is used to determine if the configuration is valid.MultiLineComponent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||