
ee.bitweb.springframework.security.estonianid.authentication.IdCardAuthenticationToken Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-estonian-id Show documentation
Show all versions of spring-security-estonian-id Show documentation
Spring Security support for Estonian ID card and Mobile ID authentication.
The newest version!
package ee.bitweb.springframework.security.estonianid.authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.AuthorityUtils;
import java.security.cert.X509Certificate;
import java.util.Collection;
/**
* Created by taavisikk on 5/10/16.
*/
public class IdCardAuthenticationToken extends EstonianIdAuthenticationToken {
private X509Certificate userCert;
public IdCardAuthenticationToken(Collection authorities, X509Certificate userCert) {
super(authorities);
this.userCert = userCert;
}
public IdCardAuthenticationToken(X509Certificate userCert) {
this(AuthorityUtils.NO_AUTHORITIES, userCert);
}
public X509Certificate getUserCert() {
return userCert;
}
public void setUserCert(X509Certificate userCert) {
this.userCert = userCert;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy