Class StorageBackedAccountLockoutManager.UsernameIPLockoutKeyStrategy

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​String>
    Enclosing class:
    StorageBackedAccountLockoutManager

    public static class StorageBackedAccountLockoutManager.UsernameIPLockoutKeyStrategy
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​String>
    A function to generate a key for lockout storage. This effectively defines the scope of the lockout; e.g. if the key depends on the supplied username and client IP address, the lockout will affect only attempts for that username from that client IP.
    • Field Detail

      • httpRequest

        @Nullable
        private javax.servlet.http.HttpServletRequest httpRequest
        Servlet request to pull client ip from.
    • Constructor Detail

      • UsernameIPLockoutKeyStrategy

        public UsernameIPLockoutKeyStrategy()
    • Method Detail

      • setHttpServletRequest

        public void setHttpServletRequest​(@Nonnull
                                          javax.servlet.http.HttpServletRequest request)
        Set the servlet request to read from.
        Parameters:
        request - servlet request
      • apply

        @Nullable
        public String apply​(@Nullable
                            org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​String>