Search in sources :

Example 1 with HttpAuthenticationMethodType

use of org.zaproxy.zap.authentication.HttpAuthenticationMethodType 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.add(new FormBasedAuthenticationMethodType());
    this.authenticationMethodTypes.add(new HttpAuthenticationMethodType());
    this.authenticationMethodTypes.add(new ManualAuthenticationMethodType());
    this.authenticationMethodTypes.add(new ScriptBasedAuthenticationMethodType());
    this.authenticationMethodTypes.add(new JsonBasedAuthenticationMethodType());
    for (AuthenticationMethodType a : authenticationMethodTypes) {
        a.hook(hook);
    }
    if (log.isInfoEnabled()) {
        log.info("Loaded authentication method types: " + authenticationMethodTypes);
    }
}
Also used : JsonBasedAuthenticationMethodType(org.zaproxy.zap.authentication.JsonBasedAuthenticationMethodType) HttpAuthenticationMethodType(org.zaproxy.zap.authentication.HttpAuthenticationMethodType) JsonBasedAuthenticationMethodType(org.zaproxy.zap.authentication.JsonBasedAuthenticationMethodType) 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 JsonBasedAuthenticationMethodType (org.zaproxy.zap.authentication.JsonBasedAuthenticationMethodType)1 ManualAuthenticationMethodType (org.zaproxy.zap.authentication.ManualAuthenticationMethodType)1 ScriptBasedAuthenticationMethodType (org.zaproxy.zap.authentication.ScriptBasedAuthenticationMethodType)1