Class RADIUS
- java.lang.Object
-
- com.sun.identity.authentication.spi.AMLoginModule
-
- com.sun.identity.authentication.modules.radius.RADIUS
-
- All Implemented Interfaces:
LoginModule
public class RADIUS extends AMLoginModule
An authentication module that defers to remote radius servers to validate username and password. It includes admin console configuration pages for identifying the remote servers and various parameters.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.authentication.spi.AMLoginModule
amCache, auditor, currentState
-
-
Constructor Summary
Constructors Constructor Description RADIUS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroyModuleState()Destroy the module state.PrincipalgetPrincipal()Returnsjava.security.Principal.voidinit(Subject subject, Map sharedState, Map options)Initializes thisLoginModule.voidnullifyUsedVars()Set all the used variables to null.intprocess(Callback[] callbacks, int state)Takes an array of submittedCallback, process them and decide the order of next state to go.protected voidreadAttributesFromResponsePacket(Packet response)Extension point to handle additional response attributesvoidshutdown()Shutdown the RADIUS connection.-
Methods inherited from class com.sun.identity.authentication.spi.AMLoginModule
abort, clearInfoText, commit, createIdentity, forceCallbacksInit, getAMIdentityRepository, getAttribute, getAuditEntryDetail, getAuthenticatedPrincipals, getAuthLevel, getCallback, getCallback, getCallbackHandler, getCurrentState, getFailCount, getHttpServletRequest, getHttpServletResponse, getInfoText, getLocale, getLoginLocale, getLoginState, getMaximumFailCount, getNewUserIDs, getNumberOfStates, getOrgProfile, getOrgServiceTemplate, getPwdKey, getRequestOrg, getServiceConfig, getSessionId, getSSOSession, getUserAliasList, getUserKey, getUserProfile, getUserSessionProperty, getUserSessions, incrementFailCount, initialize, isAccountLocked, isDynamicProfileCreationEnabled, isRequired, isSessionQuotaReached, isSharedStateEnabled, isSuperAdmin, isUseFirstPassEnabled, isValidUserEntry, login, logout, replaceCallback, replaceHeader, resetCallback, resetCurrentState, setAuthLevel, setFailureID, setForceCallbacksRead, setLoginFailureURL, setLoginSuccessURL, setModuleErrorTemplate, setOrg, setSharedStateEnabled, setUserAttributes, setUserSessionProperty, storeUsername, storeUsernamePasswd, substituteHeader, substituteInfoText, validatePassword, validateUserName
-
-
-
-
Method Detail
-
init
public void init(Subject subject, Map sharedState, Map options)
Initializes thisLoginModule.- Specified by:
initin classAMLoginModule- Parameters:
subject- theSubjectto be authenticated.sharedState- sharedLoginModulestate.options- options specified in the login.Configurationfor this particularLoginModule.
-
process
public int process(Callback[] callbacks, int state) throws AuthLoginException
Takes an array of submittedCallback, process them and decide the order of next state to go. Return STATE_SUCCEED if the login is successful, return STATE_FAILED if the LoginModule should be ignored.- Specified by:
processin classAMLoginModule- Parameters:
callbacks- an array ofCallbackfor this Login statestate- order of state. State order starts with 1.- Returns:
- int order of next state. Return STATE_SUCCEED if authentication is successful, return STATE_FAILED if the LoginModule should be ignored.
- Throws:
AuthLoginException- if the user fails authentication or some anomalous condition occurs
-
readAttributesFromResponsePacket
protected void readAttributesFromResponsePacket(Packet response) throws AuthLoginException
Extension point to handle additional response attributes- Parameters:
response- the RADIUS authentication response packet- Throws:
AuthLoginException- exception thrown if login has to fail based on additional attributes
-
getPrincipal
public Principal getPrincipal()
Returnsjava.security.Principal.- Specified by:
getPrincipalin classAMLoginModule- Returns:
java.security.Principal
-
destroyModuleState
public void destroyModuleState()
Destroy the module state.- Overrides:
destroyModuleStatein classAMLoginModule
-
nullifyUsedVars
public void nullifyUsedVars()
Set all the used variables to null.- Overrides:
nullifyUsedVarsin classAMLoginModule
-
shutdown
public void shutdown()
Shutdown the RADIUS connection.
-
-