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 java.lang.String
DEFAULT_AUTH_TYPE
Default radius authentication typestatic java.lang.String
DEFAULT_INNER_IDENTITY
Default inner identitystatic java.lang.String
DEFAULT_NAS_ID
Default NAS_IDstatic java.lang.String
DEFAULT_PASSWORD
Default passwordstatic java.lang.String
DEFAULT_SECRET
Default secretstatic java.lang.String
DEFAULT_TTLS_INNER_AUTH_TYPE
Default inner auht protocol for ttlsstatic java.lang.String
DEFAULT_USER
Default user
-
Constructor Summary
Constructors Modifier Constructor Description RadiusAuthDetector()
Default constructorprotected
RadiusAuthDetector(java.lang.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()
getAuthPortjava.lang.String
getAuthType()
getAuthTypeprotected Client<CompositeAttributeLists,net.jradius.packet.RadiusPacket>
getClient()
getClientjava.lang.String
getInnerIdentity()
getInnerIdentityjava.lang.String
getNasID()
getNasIDjava.lang.String
getPassword()
getPasswordjava.lang.String
getSecret()
getSecretjava.lang.String
getTtlsInnerAuthType()
getjava.lang.String
getUser()
getUservoid
onInit()
onInitvoid
setAcctPort(int acctport)
setAcctPortvoid
setAuthPort(int authport)
setAuthPortvoid
setAuthType(java.lang.String authType)
setAuthTypevoid
setInnerIdentity(java.lang.String innerIdentity)
setInnerIdentityvoid
setNasID(java.lang.String nasid)
setNasIDvoid
setPassword(java.lang.String password)
setPasswordvoid
setSecret(java.lang.String secret)
setSecretvoid
setTtlsInnerAuthType(java.lang.String ttlsInnerAuthType)
setTtlsInnerAuthTypevoid
setUser(java.lang.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 java.lang.String DEFAULT_AUTH_TYPE
Default radius authentication type- See Also:
- Constant Field Values
-
DEFAULT_USER
public static final java.lang.String DEFAULT_USER
Default user- See Also:
- Constant Field Values
-
DEFAULT_PASSWORD
public static final java.lang.String DEFAULT_PASSWORD
Default password- See Also:
- Constant Field Values
-
DEFAULT_SECRET
public static final java.lang.String DEFAULT_SECRET
Default secret- See Also:
- Constant Field Values
-
DEFAULT_NAS_ID
public static final java.lang.String DEFAULT_NAS_ID
Default NAS_ID- See Also:
- Constant Field Values
-
DEFAULT_TTLS_INNER_AUTH_TYPE
public static final java.lang.String DEFAULT_TTLS_INNER_AUTH_TYPE
Default inner auht protocol for ttls- See Also:
- Constant Field Values
-
DEFAULT_INNER_IDENTITY
public static final java.lang.String DEFAULT_INNER_IDENTITY
Default inner identity- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RadiusAuthDetector
public RadiusAuthDetector()
Default constructor
-
RadiusAuthDetector
protected RadiusAuthDetector(java.lang.String serviceName, int port)
Constructor for creating a non-default service based on this protocol- Parameters:
serviceName
- aString
object.port
- a int.
-
-
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.
-
setSecret
public void setSecret(java.lang.String secret)
setSecret
- Parameters:
secret
- aString
object.
-
getSecret
public java.lang.String getSecret()
getSecret
- Returns:
- a
String
object.
-
setAuthType
public void setAuthType(java.lang.String authType)
setAuthType
- Parameters:
authType
- aString
object.
-
getAuthType
public java.lang.String getAuthType()
getAuthType
- Returns:
- a
String
object.
-
getAuthenticator
public net.jradius.client.auth.RadiusAuthenticator getAuthenticator()
-
setNasID
public void setNasID(java.lang.String nasid)
setNasID
- Parameters:
nasid
- aString
object.
-
getNasID
public java.lang.String getNasID()
getNasID
- Returns:
- a
String
object.
-
setUser
public void setUser(java.lang.String user)
setUser
- Parameters:
user
- aString
object.
-
getUser
public java.lang.String getUser()
getUser
- Returns:
- a
String
object.
-
setPassword
public void setPassword(java.lang.String password)
setPassword
- Parameters:
password
- aString
object.
-
getPassword
public java.lang.String getPassword()
getPassword
- Returns:
- a
String
object.
-
getTtlsInnerAuthType
public java.lang.String getTtlsInnerAuthType()
get
- Returns:
- a
String
object.
-
setTtlsInnerAuthType
public void setTtlsInnerAuthType(java.lang.String ttlsInnerAuthType)
setTtlsInnerAuthType
- Parameters:
ttlsInnerAuthType
- aString
object.
-
getInnerIdentity
public java.lang.String getInnerIdentity()
getInnerIdentity
- Returns:
- a
String
object.
-
setInnerIdentity
public void setInnerIdentity(java.lang.String innerIdentity)
setInnerIdentity
- Parameters:
innerIdentity
- aString
object.
-
-