/** {@inheritDoc} */ @Override public int hashCode() { return authnResult.hashCode(); }
/** Constructor. */ public AbstractUsernamePasswordValidationAction() { removeContextAfterValidation = true; setMetricName(DEFAULT_METRIC_NAME); }
/** * Creates a new template search DN resolver. * * @param cf connection factory * @param engine velocity engine * @param filter filter template * * @throws VelocityException if velocity is not configured properly or the filter template is invalid */ public TemplateSearchDnResolver(final ConnectionFactory cf, final VelocityEngine engine, final String filter) throws VelocityException { super(engine, filter); setConnectionFactory(cf); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resultMergingStrategy == null) { resultMergingStrategy = new DefaultResultMergingStrategy(); } }
/** * Record a successful authentication attempt against the configured counter, * optionally clearing account lockout state. * * @param profileRequestContext current profile request context * * @since 3.3.0 */ protected void recordSuccess(@Nonnull final ProfileRequestContext profileRequestContext) { recordSuccess(); if (lockoutManager != null) { lockoutManager.clear(profileRequestContext); } }
/** * Record a failed authentication attempt against the configured counter, * optionally incrementing the account lockout counter. * * @param profileRequestContext current profile request context * @param inc true iff lockout counter should be incremented * * @since 3.3.0 */ protected void recordFailure(@Nonnull final ProfileRequestContext profileRequestContext, final boolean inc) { recordFailure(); if (inc && lockoutManager != null) { lockoutManager.increment(profileRequestContext); } }
/** * Initialize a request for external authentication by seeking out the information stored in * the servlet session and exposing it as request attributes. * * @param request servlet request * * @throws ExternalAuthenticationException if an error occurs */ protected void doStart(@Nonnull final HttpServletRequest request) throws ExternalAuthenticationException { throw new ExternalAuthenticationException("Not implemented"); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (sessionManager == null) { throw new ComponentInitializationException("SessionManager cannot be null"); } }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (resultLookupStrategy == null) { throw new ComponentInitializationException("Result lookup strategy cannot be null"); } }
/** * Creates a new pooled template search DN resolver. * * @param cf connection factory * @param engine velocity engine * @param filter filter template * * @throws VelocityException if velocity is not configured properly or the filter template is invalid */ public PooledTemplateSearchDnResolver(final PooledConnectionFactory cf, final VelocityEngine engine, final String filter) throws VelocityException { super(engine, filter); setConnectionFactory(cf); }
/** {@inheritDoc} */ @Override protected final void doExecute( @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext) { doExecute(profileRequestContext, scContext); }
/** {@inheritDoc} */ @Override protected final void doExecute( @Nonnull final ProfileRequestContext<InboundMessageType, OutboundMessageType> profileRequestContext) { doExecute(profileRequestContext, authnContext); }
/** * Creates a new abstract template search DN resolver. * * @param engine velocity engine * @param filter filter template * * @throws VelocityException if velocity is not configured properly or the filter template is invalid */ public AbstractTemplateSearchDnResolver(final VelocityEngine engine, final String filter) throws VelocityException { template = Template.fromTemplate(engine, filter); setUserFilter(filter); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (authenticator == null) { throw new ComponentInitializationException("Authenticator cannot be null"); } }
/** {@inheritDoc} */ @Override public int hashCode() { return getId().hashCode(); }
/** {@inheritDoc} */ @Override public int hashCode() { return getId().hashCode(); }
/** * Get the {@link ProfileRequestContext} associated with a request. * * @param request servlet request * * @return the profile request context * @throws ExternalAuthenticationException if an error occurs */ @Nonnull protected ProfileRequestContext getProfileRequestContext(@Nonnull final HttpServletRequest request) throws ExternalAuthenticationException { throw new ExternalAuthenticationException("Not implemented"); }
/** {@inheritDoc} */ @Override protected void doInitialize() throws ComponentInitializationException { super.doInitialize(); if (authAuthenticator == null) { throw new ComponentInitializationException("DuoAuthAuthenticator cannot be null"); } if (preauthAuthenticator == null) { throw new ComponentInitializationException("DuoPreauthAuthenticator cannot be null"); } }