Package org.codice.ddf.security.handler
Class AuthenticationTokenFactory
java.lang.Object
org.codice.ddf.security.handler.AuthenticationTokenFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.shiro.authc.AuthenticationTokenfromCertificates(X509Certificate[] certs, String ip) Creates aAuthenticationTokenfrom a given list of certificates.org.apache.shiro.authc.AuthenticationTokenfromUsernamePassword(String username, String password, String ip) Creates aAuthenticationTokenfrom a given username and password.
-
Constructor Details
-
AuthenticationTokenFactory
public AuthenticationTokenFactory()
-
-
Method Details
-
fromUsernamePassword
public org.apache.shiro.authc.AuthenticationToken fromUsernamePassword(String username, String password, String ip) Creates aAuthenticationTokenfrom a given username and password.- Parameters:
username- - user's usernamepassword- - user's password- Returns:
- a BaseAuthenticationToken containing the given username and password
-
fromCertificates
public org.apache.shiro.authc.AuthenticationToken fromCertificates(X509Certificate[] certs, String ip) Creates aAuthenticationTokenfrom a given list of certificates.- Parameters:
certs- - the user's certificates- Returns:
- a BaseAuthenticationToken containing the given certificates
-