|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider
org.opennms.web.springframework.security.RadiusAuthenticationProvider
public class RadiusAuthenticationProvider
An org.springframework.security.providers.AuthenticationProvider implementation that provides integration with a Radius server.
| Field Summary |
|---|
| Fields inherited from class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider |
|---|
hideUserNotFoundExceptions, messages |
| Constructor Summary | |
|---|---|
RadiusAuthenticationProvider(String server,
String secret)
Create an instance using the supplied server and shared secret. |
|
| Method Summary | |
|---|---|
protected void |
additionalAuthenticationChecks(org.springframework.security.userdetails.UserDetails userDetails,
org.springframework.security.providers.UsernamePasswordAuthenticationToken token)
|
protected void |
doAfterPropertiesSet()
|
protected org.springframework.security.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.providers.UsernamePasswordAuthenticationToken token)
|
void |
setAuthTypeClass(net.jradius.client.auth.RadiusAuthenticator authTypeClass)
Sets the authenticator, which determines the authentication type (PAP, CHAP, etc) |
void |
setDefaultRoles(String defaultRoles)
Sets the default authorities (roles) that should be assigned to authenticated users |
void |
setPort(int port)
Sets the port number the radius server is listening on |
void |
setRetries(int retries)
Sets the number of times to retry a timed-out authentication request |
void |
setRolesAttribute(String rolesAttribute)
Sets the name of a radius attribute to be returned by the radius server with a comma-separated list of authorities (roles) to be assigned to the user If this is not set, or if the specified attribute is not found in the reply from the radius server, defaultRoles will be used to assign roles If JRadius's built-in attribute dictionary does not contain the desired attribute name, use "Unknown-VSAttribute( |
void |
setTimeout(int timeout)
Sets the authentication timeout (in seconds) |
| Methods inherited from class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider |
|---|
afterPropertiesSet, authenticate, createSuccessAuthentication, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supports |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RadiusAuthenticationProvider(String server,
String secret)
server - secret - | Method Detail |
|---|
protected void doAfterPropertiesSet()
throws Exception
doAfterPropertiesSet in class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProviderExceptionpublic void setPort(int port)
port - (defaults to 1812)public void setTimeout(int timeout)
timeout - (defaults to 5)public void setRetries(int retries)
retries - (defaults to 3)public void setAuthTypeClass(net.jradius.client.auth.RadiusAuthenticator authTypeClass)
authTypeClass - An instance of net.jradius.client.auth.RadiusAuthenticator (defaults to PAPAuthenticator)public void setDefaultRoles(String defaultRoles)
defaultRoles - comma-separated list of roles (defaults to "ROLE_USER")public void setRolesAttribute(String rolesAttribute)
rolesAttribute -
protected void additionalAuthenticationChecks(org.springframework.security.userdetails.UserDetails userDetails,
org.springframework.security.providers.UsernamePasswordAuthenticationToken token)
throws org.springframework.security.AuthenticationException
additionalAuthenticationChecks in class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.AuthenticationException
protected org.springframework.security.userdetails.UserDetails retrieveUser(String username,
org.springframework.security.providers.UsernamePasswordAuthenticationToken token)
throws org.springframework.security.AuthenticationException
retrieveUser in class org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProviderorg.springframework.security.AuthenticationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||