ISE-ComProg-After-Midterm/screwdriver-3.5.6/box/snippets/java/SimpleUsernamePasswordAuthe...

34 lines
918 B
Java
Raw Permalink Normal View History

2020-10-29 09:38:56 +00:00
package +zoccolo+.web.authentication;
import java.util.Collection;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
import java.math.BigInteger;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import +jpapath+.+tabella+;
public final class SimpleUsernamePasswordAuthenticationToken
extends UsernamePasswordAuthenticationToken {
private static final long serialVersionUID = -5138870746127783L;
public SimpleUsernamePasswordAuthenticationToken(String principal,
String credentials) {
super(principal, credentials);
}
public SimpleUsernamePasswordAuthenticationToken(Utenti principal,
String credentials,
Collection<? extends GrantedAuthority> authorities) {
super(principal, credentials, authorities);
}
+newMethod+
/* screwdriver_knife */
}