Class RadiusAuthDetector
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.SyncAbstractDetector
-
- org.opennms.netmgt.provision.support.BasicDetector<CompositeAttributeLists,net.jradius.packet.RadiusPacket>
-
- org.opennms.protocols.radius.detector.RadiusAuthDetector
-
- All Implemented Interfaces:
ServiceDetector
,SyncServiceDetector
public class RadiusAuthDetector extends BasicDetector<CompositeAttributeLists,net.jradius.packet.RadiusPacket>
RadiusAuthDetector class.
- Version:
- $Id: $
- Author:
- ranger
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_ACCT_PORT
Default radius accounting portstatic int
DEFAULT_AUTH_PORT
Default radius authentication portstatic String
DEFAULT_AUTH_TYPE
Default radius authentication typestatic String
DEFAULT_INNER_IDENTITY
Default inner identitystatic String
DEFAULT_NAS_ID
Default NAS_IDstatic String
DEFAULT_PASSWORD
Default passwordstatic String
DEFAULT_SECRET
Default secretstatic String
DEFAULT_TTLS_INNER_AUTH_TYPE
Default inner auht protocol for ttlsstatic String
DEFAULT_USER
Default user
-
Constructor Summary
Constructors Modifier Constructor Description RadiusAuthDetector()
Default constructorprotected
RadiusAuthDetector(String serviceName, int port)
Constructor for creating a non-default service based on this protocol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAcctPort()
getAcctPortnet.jradius.client.auth.RadiusAuthenticator
getAuthenticator()
int
getAuthPort()
getAuthPortString
getAuthType()
getAuthTypeprotected Client<CompositeAttributeLists,net.jradius.packet.RadiusPacket>
getClient()
getClientString
getInnerIdentity()
getInnerIdentityString
getNasID()
getNasIDString
getPassword()
getPasswordString
getSecret()
getSecretString
getTtlsInnerAuthType()
getString
getUser()
getUservoid
onInit()
onInitvoid
setAcctPort(int acctport)
setAcctPortvoid
setAuthPort(int authport)
setAuthPortvoid
setAuthType(String authType)
setAuthTypevoid
setInnerIdentity(String innerIdentity)
setInnerIdentityvoid
setNasID(String nasid)
setNasIDvoid
setPassword(String password)
setPasswordvoid
setSecret(String secret)
setSecretvoid
setTtlsInnerAuthType(String ttlsInnerAuthType)
setTtlsInnerAuthTypevoid
setUser(String user)
setUser-
Methods inherited from class org.opennms.netmgt.provision.support.BasicDetector
dispose, expectBanner, getConversation, isServiceDetected, send, send
-
Methods inherited from class org.opennms.netmgt.provision.support.SyncAbstractDetector
detect
-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.ServiceDetector
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Field Detail
-
DEFAULT_AUTH_PORT
public static final int DEFAULT_AUTH_PORT
Default radius authentication port- See Also:
- Constant Field Values
-
DEFAULT_ACCT_PORT
public static final int DEFAULT_ACCT_PORT
Default radius accounting port- See Also:
- Constant Field Values
-
DEFAULT_AUTH_TYPE
public static final String DEFAULT_AUTH_TYPE
Default radius authentication type- See Also:
- Constant Field Values
-
DEFAULT_USER
public static final String DEFAULT_USER
Default user- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final String DEFAULT_PASSWORD
Default password- See Also:
- Constant Field Values
-
DEFAULT_SECRET
public static final String DEFAULT_SECRET
Default secret- See Also:
- Constant Field Values
-
DEFAULT_NAS_ID
public static final String DEFAULT_NAS_ID
Default NAS_ID- See Also:
- Constant Field Values
-
DEFAULT_TTLS_INNER_AUTH_TYPE
public static final String DEFAULT_TTLS_INNER_AUTH_TYPE
Default inner auht protocol for ttls- See Also:
- Constant Field Values
-
DEFAULT_INNER_IDENTITY
public static final String DEFAULT_INNER_IDENTITY
Default inner identity- See Also:
- Constant Field Values
-
-
Method Detail
-
onInit
public void onInit()
onInit
- Specified by:
onInit
in classAbstractDetector
-
getClient
protected Client<CompositeAttributeLists,net.jradius.packet.RadiusPacket> getClient()
getClient
- Specified by:
getClient
in classBasicDetector<CompositeAttributeLists,net.jradius.packet.RadiusPacket>
- Returns:
- a
Client
object.
-
setAuthPort
public void setAuthPort(int authport)
setAuthPort
- Parameters:
authport
- a int.
-
getAuthPort
public int getAuthPort()
getAuthPort
- Returns:
- a int.
-
setAcctPort
public void setAcctPort(int acctport)
setAcctPort
- Parameters:
acctport
- a int.
-
getAcctPort
public int getAcctPort()
getAcctPort
- Returns:
- a int.
-
setAuthType
public void setAuthType(String authType)
setAuthType
- Parameters:
authType
- aString
object.
-
getAuthenticator
public net.jradius.client.auth.RadiusAuthenticator getAuthenticator()
-
setPassword
public void setPassword(String password)
setPassword
- Parameters:
password
- aString
object.
-
setTtlsInnerAuthType
public void setTtlsInnerAuthType(String ttlsInnerAuthType)
setTtlsInnerAuthType
- Parameters:
ttlsInnerAuthType
- aString
object.
-
-