Search in sources :

Example 1 with ScriptBasedAuthenticationMethodType

use of org.zaproxy.zap.authentication.ScriptBasedAuthenticationMethodType in project zaproxy by zaproxy.

the class ExtensionAuthentication method loadAuthenticationMethodTypes.

/**
	 * Loads the authentication method types and hooks them up.
	 * 
	 * @param hook the extension hook
	 */
private void loadAuthenticationMethodTypes(ExtensionHook hook) {
    this.authenticationMethodTypes = new ArrayList<>();
    this.authenticationMethodTypes.add(new FormBasedAuthenticationMethodType());
    this.authenticationMethodTypes.add(new HttpAuthenticationMethodType());
    this.authenticationMethodTypes.add(new ManualAuthenticationMethodType());
    this.authenticationMethodTypes.add(new ScriptBasedAuthenticationMethodType());
    for (AuthenticationMethodType a : authenticationMethodTypes) {
        a.hook(hook);
    }
    if (log.isInfoEnabled()) {
        log.info("Loaded authentication method types: " + authenticationMethodTypes);
    }
}
Also used : HttpAuthenticationMethodType(org.zaproxy.zap.authentication.HttpAuthenticationMethodType) FormBasedAuthenticationMethodType(org.zaproxy.zap.authentication.FormBasedAuthenticationMethodType) ScriptBasedAuthenticationMethodType(org.zaproxy.zap.authentication.ScriptBasedAuthenticationMethodType) ManualAuthenticationMethodType(org.zaproxy.zap.authentication.ManualAuthenticationMethodType) AuthenticationMethodType(org.zaproxy.zap.authentication.AuthenticationMethodType) ManualAuthenticationMethodType(org.zaproxy.zap.authentication.ManualAuthenticationMethodType) HttpAuthenticationMethodType(org.zaproxy.zap.authentication.HttpAuthenticationMethodType) FormBasedAuthenticationMethodType(org.zaproxy.zap.authentication.FormBasedAuthenticationMethodType) ScriptBasedAuthenticationMethodType(org.zaproxy.zap.authentication.ScriptBasedAuthenticationMethodType)

Aggregations

AuthenticationMethodType (org.zaproxy.zap.authentication.AuthenticationMethodType)1 FormBasedAuthenticationMethodType (org.zaproxy.zap.authentication.FormBasedAuthenticationMethodType)1 HttpAuthenticationMethodType (org.zaproxy.zap.authentication.HttpAuthenticationMethodType)1 ManualAuthenticationMethodType (org.zaproxy.zap.authentication.ManualAuthenticationMethodType)1 ScriptBasedAuthenticationMethodType (org.zaproxy.zap.authentication.ScriptBasedAuthenticationMethodType)1