MCPcopy Index your code

hub / github.com/ctran/TinyRadius / functions

Functions230 in github.com/ctran/TinyRadius

↓ 1 callersMethodencodeChapPassword
Encodes a plain-text password using the given CHAP challenge. @param plaintext plain-text password @param chapChallenge CHAP ch
src/main/java/org/tinyradius/packet/AccessRequest.java:373
↓ 1 callersMethodencodePapPassword
This method encodes the plaintext user password according to RFC 2865. @param userPass the password to encrypt @param sharedSecret
src/main/java/org/tinyradius/packet/AccessRequest.java:252
↓ 1 callersMethodencodeRequestAttributes
This method exists for subclasses to be overridden in order to encode packet attributes like the User-Password attribute. The method may use getAuthen
src/main/java/org/tinyradius/packet/RadiusPacket.java:885
↓ 1 callersMethodencodeResponsePacket
Encodes this Radius response packet and sends it to the specified output stream. @param out output stream to use @param sharedSecret
src/main/java/org/tinyradius/packet/RadiusPacket.java:607
↓ 1 callersMethodgetAcctPort
Returns the Radius server accounting port. @return acct port
src/main/java/org/tinyradius/util/RadiusClient.java:280
↓ 1 callersMethodgetAttributeBytes
Encodes the attributes of this Radius packet to a byte array. @return byte array with encoded attributes @throws IOException error writin
src/main/java/org/tinyradius/packet/RadiusPacket.java:1126
↓ 1 callersMethodgetAttributeValue
Returns the value of this attribute as a string. Tries to resolve enumerations. @see org.tinyradius.attribute.RadiusAttribute#getAttributeValue()
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:50
↓ 1 callersMethodgetHexString
Returns the byte array as a hex string in the format "0x1234". @param data byte array @return hex string
src/main/java/org/tinyradius/util/RadiusUtil.java:50
↓ 1 callersMethodgetHostName
Returns the host name of the Radius server. @return host name
src/main/java/org/tinyradius/util/RadiusClient.java:181
↓ 1 callersMethodgetPacket
Returns the proxied packet. @return packet
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:53
↓ 1 callersMethodgetPacketTypeName
Returns the type name of this Radius packet. @return name
src/main/java/org/tinyradius/packet/RadiusPacket.java:157
↓ 1 callersMethodgetProxyServer
This method must be implemented to return a RadiusEndpoint if the given packet is to be proxied. The endpoint represents the Radius server the packet
src/main/java/org/tinyradius/proxy/RadiusProxy.java:80
↓ 1 callersMethodgetRadiusClient
Returns the Radius endpoint of the client. @return endpoint
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:37
↓ 1 callersMethodgetSharedSecret
(InetSocketAddress client)
src/main/java/org/tinyradius/test/TestProxy.java:45
↓ 1 callersMethodgetSharedSecret
Returns the shared secret used to communicate with the client with the passed IP address or null if the client is not allowed at this server. @param
src/main/java/org/tinyradius/util/RadiusServer.java:53
↓ 1 callersMethodgetSocket
Returns the socket used for the server communication. It is bound to an arbitrary free local port number. @return local socket @throws SocketExceptio
src/main/java/org/tinyradius/util/RadiusClient.java:372
↓ 1 callersMethodgetStringFromUtf8
Creates a string from the passed byte array containing the string in UTF-8 representation. @param utf8 UTF-8 byte array @return Java string
src/main/java/org/tinyradius/util/RadiusUtil.java:36
↓ 1 callersMethodgetSubAttribute
Returns a sub-attribute of the given type which may only occur once in this attribute. @param type sub-attribute type @return RadiusAttrib
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:175
↓ 1 callersMethodgetUserPassword
Returns the password of the passed user. Either this method or accessRequestReceived() should be overriden. @param userName user name @ret
src/main/java/org/tinyradius/util/RadiusServer.java:82
↓ 1 callersMethodgetUserPassword
Retrieves the plain-text user password. Returns null for CHAP - use verifyPassword(). @see #verifyPassword(String) @return user password
src/main/java/org/tinyradius/packet/AccessRequest.java:108
↓ 1 callersMethodgetVendorName
Retrieves the name of the vendor with the given code from the cache. @param vendorId vendor number @return vendor name or null @see org.ti
src/main/java/org/tinyradius/dictionary/MemoryDictionary.java:96
↓ 1 callersMethodgetVendorName
Retrieves the name of the vendor with the given vendor code. @param vendorId vendor number @return vendor name or null
src/main/java/org/tinyradius/dictionary/Dictionary.java:47
↓ 1 callersMethodhandlePacket
Handles the received Radius packet and constructs a response. @param localAddress local address the packet was received on @param remoteAd
src/main/java/org/tinyradius/util/RadiusServer.java:475
↓ 1 callersMethodincludeDictionaryFile
Includes a dictionary file.
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:167
↓ 1 callersMethodisPacketDuplicate
Checks whether the passed packet is a duplicate. A packet is duplicate if another packet with the same identifier has been sent from the same host in
src/main/java/org/tinyradius/util/RadiusServer.java:594
↓ 1 callersMethodlistenAcct
Listens on the acct port (blocks the current thread). Returns when stop() is called. @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:354
↓ 1 callersMethodlistenAuth
Listens on the auth port (blocks the current thread). Returns when stop() is called. @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:344
↓ 1 callersMethodmakeDatagramPacket
Creates a Radius response datagram packet from a RadiusPacket to be send. @param packet RadiusPacket @param secret shared secre
src/main/java/org/tinyradius/util/RadiusServer.java:555
↓ 1 callersMethodmakeRadiusPacket
Creates a RadiusPacket from a received datagram packet. @param packet received datagram @param request Radius request packet @r
src/main/java/org/tinyradius/util/RadiusClient.java:409
↓ 1 callersMethodparseAttributeLine
Parse a line that declares an attribute.
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:95
↓ 1 callersMethodparseValueLine
Parses a VALUE line containing an enumeration value.
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:118
↓ 1 callersMethodparseVendorAttributeLine
Parses a line that declares a Vendor-Specific attribute.
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:137
↓ 1 callersMethodparseVendorLine
Parses a line containing a vendor declaration.
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:154
↓ 1 callersMethodproxyPacket
Proxies the given packet to the server given in the proxy connection. Stores the proxy connection object in the cache with a key that is added to the
src/main/java/org/tinyradius/proxy/RadiusProxy.java:220
↓ 1 callersMethodproxyPacketReceived
Sends an answer to a proxied packet back to the original host. Retrieves the RadiusProxyConnection object from the cache employing the Proxy-State att
src/main/java/org/tinyradius/proxy/RadiusProxy.java:170
↓ 1 callersMethodremoveLastAttribute
Removes the last occurence of the attribute of the given type from the packet. @param type attribute type code
src/main/java/org/tinyradius/packet/RadiusPacket.java:346
↓ 1 callersMethodremoveSubAttribute
Removes the specified sub-attribute from this attribute. @param attribute RadiusAttribute to remove
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:130
↓ 1 callersMethodsetAcctPort
Sets the acct port the server will listen on. @param acctPort acct port 1-65535
src/main/java/org/tinyradius/util/RadiusServer.java:246
↓ 1 callersMethodsetAcctStatusType
Sets the Acct-Status-Type attribute of this Accountnig-Request. @param acctStatusType ACCT_STATUS_TYPE_ to set
src/main/java/org/tinyradius/packet/AccountingRequest.java:108
↓ 1 callersMethodsetAttributeValue
Sets the attribute value (IP number). String format: "xx.xx.xx.xx". @throws IllegalArgumentException @throws NumberFormatException @see org.tinyradius
src/main/java/org/tinyradius/attribute/IpAttribute.java:74
↓ 1 callersMethodsetAttributeValue
Sets the string value of this attribute. @param value string, not null
src/main/java/org/tinyradius/attribute/StringAttribute.java:50
↓ 1 callersMethodsetAttributeValue
Sets the attribute value (IPv6 number). String format: ipv6 address. @throws IllegalArgumentException @throws NumberFormatException @see org.tinyradiu
src/main/java/org/tinyradius/attribute/Ipv6Attribute.java:61
↓ 1 callersMethodsetAttributeValue
Sets the attribute value (IPv6 number/prefix). String format: ipv6 address. @throws IllegalArgumentException @throws NumberFormatException @see org.ti
src/main/java/org/tinyradius/attribute/Ipv6PrefixAttribute.java:69
↓ 1 callersMethodsetAttributes
Sets the list of attributes for this Radius packet. @param attributes list of RadiusAttribute objects
src/main/java/org/tinyradius/packet/RadiusPacket.java:229
↓ 1 callersMethodsetAuthPort
Sets the auth port the server will listen on. @param authPort auth port, 1-65535
src/main/java/org/tinyradius/util/RadiusServer.java:208
↓ 1 callersMethodsetAuthenticator
Sets the authenticator to be used for this Radius packet. This method should seldomly be used. Authenticators are created and managed by this class in
src/main/java/org/tinyradius/packet/RadiusPacket.java:790
↓ 1 callersMethodsetHostName
Sets the host name of the Radius server. @param hostName host name
src/main/java/org/tinyradius/util/RadiusClient.java:191
↓ 1 callersMethodsetIpAsLong
Sets the IP number represented by this IpAttribute as a 32 bit unsigned number. @param ip
src/main/java/org/tinyradius/attribute/IpAttribute.java:111
↓ 1 callersMethodsetSharedSecret
Sets the secret shared between server and client. @param sharedSecret shared secret
src/main/java/org/tinyradius/util/RadiusClient.java:233
↓ 1 callersMethodsetUserName
Sets the User-Name attribute of this Access-Request. @param userName user name to set
src/main/java/org/tinyradius/packet/AccessRequest.java:79
↓ 1 callersMethodsetUserName
Sets the User-Name attribute of this Accountnig-Request. @param userName user name to set
src/main/java/org/tinyradius/packet/AccountingRequest.java:77
↓ 1 callersMethodsetUserPassword
Sets the plain-text user password. @param userPassword user password to set
src/main/java/org/tinyradius/packet/AccessRequest.java:95
↓ 1 callersMethodsetVendorId
Sets the vendor ID. @param vendorId vendor ID
src/main/java/org/tinyradius/dictionary/AttributeType.java:135
↓ 1 callersMethodsetVendorId
Sets the Vendor-Id of the Vendor-Specific attribute this attribute belongs to. The default value of -1 means this attribute is not a sub attribute of
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:123
↓ 1 callersMethodstart
Starts the Radius proxy. Listens on the proxy port.
src/main/java/org/tinyradius/proxy/RadiusProxy.java:39
↓ 1 callersMethodstart
Starts the Radius server. @param listenAuth open auth port? @param listenAcct open acct port?
src/main/java/org/tinyradius/util/RadiusServer.java:135
↓ 1 callersMethodstop
Stops the server and closes the sockets.
src/main/java/org/tinyradius/util/RadiusServer.java:182
↓ 1 callersMethodupdateRequestAuthenticator
Calculates the request authenticator as specified by RFC 2866. @see org.tinyradius.packet.RadiusPacket#updateRequestAuthenticator(java.lang.String, i
src/main/java/org/tinyradius/packet/AccountingRequest.java:134
↓ 1 callersMethodupdateRequestAuthenticator
AccountingRequest overrides this method to create a request authenticator as specified by RFC 2866. @param sharedSecret shared secret @par
src/main/java/org/tinyradius/packet/RadiusPacket.java:921
↓ 1 callersMethodverifyChapPassword
Verifies a CHAP password against the given plaintext password. @return plain-text password
src/main/java/org/tinyradius/packet/AccessRequest.java:394
↓ 1 callersMethodverifyPassword
Verifies that the passed plain-text password matches the password (hash) send with this Access-Request packet. Works with both PAP and CHAP. @param p
src/main/java/org/tinyradius/packet/AccessRequest.java:157
MethodAccessRequest
Constructs an empty Access-Request packet.
src/main/java/org/tinyradius/packet/AccessRequest.java:53
MethodAccountingRequest
Constructs an Accounting-Request packet to be sent to a Radius server. @param userName user name @param acctStatusType ACCT_STA
src/main/java/org/tinyradius/packet/AccountingRequest.java:57
MethodAttributeType
Create a new attribute type. @param code Radius attribute type code @param name Attribute type name @param type Radi
src/main/java/org/tinyradius/dictionary/AttributeType.java:30
MethodCoaRequest
()
src/main/java/org/tinyradius/packet/CoaRequest.java:13
MethodDefaultDictionary
Make constructor private so that a DefaultDictionary cannot be constructed by other classes.
src/main/java/org/tinyradius/dictionary/DefaultDictionary.java:34
MethodIntegerAttribute
Constructs an empty integer attribute.
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:21
MethodIpAttribute
Constructs an empty IP attribute.
src/main/java/org/tinyradius/attribute/IpAttribute.java:21
MethodIpv6Attribute
Constructs an empty IPv6 attribute.
src/main/java/org/tinyradius/attribute/Ipv6Attribute.java:21
MethodIpv6PrefixAttribute
Constructs an empty IP attribute.
src/main/java/org/tinyradius/attribute/Ipv6PrefixAttribute.java:23
MethodRadiusAttribute
Constructs an empty Radius attribute.
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:26
MethodRadiusClient
Creates a new Radius client object for a special Radius server. @param hostName host name of the Radius server @param sharedSecret
src/main/java/org/tinyradius/util/RadiusClient.java:43
MethodRadiusEndpoint
Constructs a RadiusEndpoint object. @param remoteAddress remote address (ip and port number) @param sharedSecret shared secret
src/main/java/org/tinyradius/util/RadiusEndpoint.java:23
MethodRadiusException
Constructs a RadiusException with a message. @param message error message
src/main/java/org/tinyradius/util/RadiusException.java:19
MethodRadiusPacket
Builds a Radius packet without attributes. Retrieves the next packet identifier. @param type packet type
src/main/java/org/tinyradius/packet/RadiusPacket.java:82
MethodRadiusProxyConnection
Creates a RadiusProxyConnection object. @param radiusServer server endpoint @param radiusClient client endpoint @param port port the proxied packet ar
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:26
MethodStringAttribute
Constructs an empty string attribute.
src/main/java/org/tinyradius/attribute/StringAttribute.java:20
MethodVendorSpecificAttribute
Constructs an empty Vendor-Specific attribute that can be read from a Radius packet.
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:34
MethodaccessRequestReceived
(AccessRequest accessRequest, InetSocketAddress client)
src/main/java/org/tinyradius/test/TestServer.java:46
MethodaddAttributeType
Adds an AttributeType object to the cache. @param attributeType AttributeType object @exception IllegalArgumentException du
src/main/java/org/tinyradius/dictionary/MemoryDictionary.java:128
MethodaddVendor
Adds the given vendor to the cache. @param vendorId vendor ID @param vendorName name of the vendor @exception IllegalArgumentEx
src/main/java/org/tinyradius/dictionary/MemoryDictionary.java:110
MethodcheckRequestAuthenticator
Checks the received request authenticator as specified by RFC 2866.
src/main/java/org/tinyradius/packet/AccountingRequest.java:154
MethoddecodeRequestAttributes
Decrypts the User-Password attribute. @see org.tinyradius.packet.RadiusPacket#decodeRequestAttributes(java.lang.String)
src/main/java/org/tinyradius/packet/AccessRequest.java:174
MethodencodeRequestAttributes
Sets and encrypts the User-Password attribute. @see org.tinyradius.packet.RadiusPacket#encodeRequestAttributes(java.lang.String)
src/main/java/org/tinyradius/packet/AccessRequest.java:216
MethodgetAcctStatusType
Retrieves the user name from the User-Name attribute. @return user name @throws RadiusException
src/main/java/org/tinyradius/packet/AccountingRequest.java:121
MethodgetAttributeTypeByCode
Returns the AttributeType for the vendor -1 from the cache. @param typeCode attribute type code @return AttributeType or null @see org.tin
src/main/java/org/tinyradius/dictionary/MemoryDictionary.java:35
MethodgetAttributeTypeByName
Retrieves the attribute type with the given name. @param typeName name of the attribute type @return AttributeType or null @see org.tinyra
src/main/java/org/tinyradius/dictionary/MemoryDictionary.java:65
MethodgetAttributeValue
Returns the attribute value (IP number) as a string of the format "xx.xx.xx.xx". @see org.tinyradius.attribute.RadiusAttribute#getAttributeValue()
src/main/java/org/tinyradius/attribute/IpAttribute.java:50
MethodgetAttributeValue
Returns the string value of this attribute. @return a string
src/main/java/org/tinyradius/attribute/StringAttribute.java:38
MethodgetAttributeValue
Returns the attribute value (IPv6 number) as a string of the format ipv6 address @see org.tinyradius.attribute.RadiusAttribute#getAttributeValue()
src/main/java/org/tinyradius/attribute/Ipv6Attribute.java:40
MethodgetAttributeValue
Returns the attribute value (IP number) as a string of the format "xx.xx.xx.xx". @see org.tinyradius.attribute.RadiusAttribute#getAttributeValue()
src/main/java/org/tinyradius/attribute/Ipv6PrefixAttribute.java:42
MethodgetIpAsLong
Returns the IP number as a 32 bit unsigned number. The number is returned in a long because Java does not support unsigned ints. @return IP number
src/main/java/org/tinyradius/attribute/IpAttribute.java:98
MethodgetProxyServer
(RadiusPacket packet, RadiusEndpoint client)
src/main/java/org/tinyradius/test/TestProxy.java:30
MethodgetReceivedPackets
Returns a map containing received packets @return list of received packets
src/main/java/org/tinyradius/util/RadiusServer.java:294
MethodgetSharedSecret
(InetSocketAddress client)
src/main/java/org/tinyradius/test/TestServer.java:30
MethodgetSubAttributeValue
Returns the value of the Radius attribute of the given type or null if there is no such attribute. @param type attribute type name @return
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:221
MethodgetUserName
Retrieves the user name from the User-Name attribute. @return user name @throws RadiusException
src/main/java/org/tinyradius/packet/AccountingRequest.java:93
MethodgetUserPassword
(String userName)
src/main/java/org/tinyradius/test/TestProxy.java:54
MethodgetUserPassword
(String userName)
src/main/java/org/tinyradius/test/TestServer.java:38
MethodgetVendorAttribute
Returns the Vendor-Specific attribute for the given vendor ID. If there is more than one Vendor-Specific attribute with the given vendor ID, the first
src/main/java/org/tinyradius/packet/RadiusPacket.java:570
← previousnext →101–200 of 230, ranked by callers