Examples of UsernameLeakyBucketKey


Examples of be.dnsbelgium.rate.UsernameLeakyBucketKey

import org.springframework.security.core.context.SecurityContext;

public class UsernameLeakyBucketKeyFactory implements LeakyBucketKeyFactory<UsernameLeakyBucketKey> {
  @Override
  public UsernameLeakyBucketKey create(SecurityContext context) {
    return new UsernameLeakyBucketKey(context.getAuthentication().getName());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.