1 package org
.argeo
.security
.core
;
3 import org
.springframework
.security
.authentication
.AuthenticationProvider
;
4 import org
.springframework
.security
.core
.Authentication
;
5 import org
.springframework
.security
.core
.AuthenticationException
;
7 public class InternalAuthenticationProvider
implements AuthenticationProvider
{
11 public Authentication
authenticate(Authentication arg0
)
12 throws AuthenticationException
{
13 InternalAuthentication authentication
= (InternalAuthentication
) arg0
;
14 if (authentication
.getCredentials().toString().equals(key
))
15 return authentication
;
19 public void setKey(String key
) {
24 public boolean supports(Class
<?
> authentication
) {
25 return InternalAuthentication
.class.isAssignableFrom(authentication
);