Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ctran/TinyRadius
/ functions
Functions
230 in github.com/ctran/TinyRadius
⨍
Functions
230
◇
Types & classes
29
↓ 23 callers
Method
addAttribute
Adds a Radius attribute to this packet. Can also be used to add Vendor-Specific sub-attributes. If a attribute with a vendor code != -1 is passed in,
src/main/java/org/tinyradius/packet/RadiusPacket.java:251
↓ 15 callers
Method
getAttributeData
Returns the data for this attribute. @return attribute data
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:48
↓ 14 callers
Method
getAuthenticator
Returns the authenticator for this Radius packet. For a Radius packet read from a stream, this will return the authenticator sent by the server. For a
src/main/java/org/tinyradius/packet/RadiusPacket.java:778
↓ 12 callers
Method
getChildVendorId
Returns the vendor ID of the sub-attributes. @return vendor ID of sub attributes
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:63
↓ 12 callers
Method
getPort
Returns the port number the proxied packet arrived at originally. @return port number
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:62
↓ 11 callers
Method
getAttributeType
Returns the type of this Radius attribute. @return type code, 0-255
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:69
↓ 11 callers
Method
getPacketType
Returns the type of this Radius packet. @return packet type
src/main/java/org/tinyradius/packet/RadiusPacket.java:148
↓ 10 callers
Method
getAttributes
Returns all attributes of this packet of the given type. Returns an empty list if there are no such attributes. @param attributeType type
src/main/java/org/tinyradius/packet/RadiusPacket.java:395
↓ 10 callers
Method
getPacketIdentifier
Returns the packet identifier for this Radius packet. @return packet identifier
src/main/java/org/tinyradius/packet/RadiusPacket.java:127
↓ 10 callers
Method
getUtf8Bytes
Returns the passed string as a byte array containing the string in UTF-8 representation. @param str Java string @return UTF-8 byte array
src/main/java/org/tinyradius/util/RadiusUtil.java:22
↓ 10 callers
Method
setAttributeData
Sets the data for this attribute. @param attributeData attribute data
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:58
↓ 10 callers
Method
setAttributeType
Sets the type of this Radius attribute. @param attributeType type code, 0-255
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:79
↓ 8 callers
Method
getMd5Digest
Returns a MD5 digest. @return MessageDigest object
src/main/java/org/tinyradius/packet/RadiusPacket.java:1108
↓ 7 callers
Method
close
Closes the socket of this client.
src/main/java/org/tinyradius/util/RadiusClient.java:150
↓ 7 callers
Method
getAttribute
Returns a Radius attribute of the given type which may only occur once in the Radius packet. @param type attribute type @return RadiusAttr
src/main/java/org/tinyradius/packet/RadiusPacket.java:459
↓ 7 callers
Method
getAuthProtocol
Returns the protocol used for encrypting the passphrase. @return AUTH_PAP or AUTH_CHAP
src/main/java/org/tinyradius/packet/AccessRequest.java:131
↓ 7 callers
Method
getDefaultDictionary
Returns the singleton instance of this object. @return DefaultDictionary instance
src/main/java/org/tinyradius/dictionary/DefaultDictionary.java:26
↓ 7 callers
Method
getEndpointAddress
Returns the remote address. @return remote address
src/main/java/org/tinyradius/util/RadiusEndpoint.java:32
↓ 7 callers
Method
getVendorId
Returns the vendor ID. No vendor specific attribute = -1 @return vendor ID
src/main/java/org/tinyradius/dictionary/AttributeType.java:125
↓ 7 callers
Method
setAuthProtocol
Selects the protocol to use for encrypting the passphrase when encoding this Radius packet. @param authProtocol AUTH_PAP or AUTH_CHAP
src/main/java/org/tinyradius/packet/AccessRequest.java:142
↓ 6 callers
Method
getListenAddress
Returns the IP address the server listens on. Returns null if listening on the wildcard address. @return listen address or null
src/main/java/org/tinyradius/util/RadiusServer.java:304
↓ 6 callers
Method
getTypeCode
Retrieves the Radius type code for this attribute type. @return Radius type code
src/main/java/org/tinyradius/dictionary/AttributeType.java:60
↓ 6 callers
Method
getVendorId
Retrieves the ID of the vendor with the given name. @param vendorName name of the vendor @return vendor ID or -1
src/main/java/org/tinyradius/dictionary/Dictionary.java:55
↓ 6 callers
Method
getVendorId
Gets the Vendor-Id of the Vendor-Specific attribute this attribute belongs to. Returns -1 if this attribute is not a sub attribute of a Vendor-Specifi
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:111
↓ 6 callers
Method
removeAttributes
Removes all attributes from this packet which have got the specified type. @param type attribute type to remove
src/main/java/org/tinyradius/packet/RadiusPacket.java:327
↓ 6 callers
Method
toString
String representation of this packet, for debugging purposes. @see java.lang.Object#toString()
src/main/java/org/tinyradius/packet/RadiusPacket.java:755
↓ 5 callers
Method
decodePacket
Reads a Radius packet from the given input stream and creates an appropiate RadiusPacket descendant object. Reads in all attributes and returns the ob
src/main/java/org/tinyradius/packet/RadiusPacket.java:970
↓ 5 callers
Method
getAttributeTypeByName
Retrieves an attribute type by name. This includes vendor-specific attribute types whose name is prefixed by the vendor name. @param typeName name of
src/main/java/org/tinyradius/dictionary/Dictionary.java:22
↓ 5 callers
Method
getDictionary
Returns the dictionary this Radius attribute uses. @return Dictionary instance
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:132
↓ 5 callers
Method
getSubAttributes
Returns the list of sub-attributes. @return List of RadiusAttribute objects
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:140
↓ 5 callers
Method
setName
Sets the name of this type. @param name type name
src/main/java/org/tinyradius/dictionary/AttributeType.java:91
↓ 5 callers
Method
toString
String representation for debugging purposes. @see java.lang.Object#toString()
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:189
↓ 4 callers
Method
createRadiusAttribute
Creates a RadiusAttribute object of the appropriate type. @param dictionary Dictionary to use @param vendorId vendor ID or -1 @
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:231
↓ 4 callers
Method
getAcctPort
Returns the acct port the server will listen on. @return acct port
src/main/java/org/tinyradius/util/RadiusServer.java:258
↓ 4 callers
Method
getAuthPort
Returns the auth port the server will listen on. @return auth port
src/main/java/org/tinyradius/util/RadiusServer.java:198
↓ 4 callers
Method
getName
Retrieves the name of this type. @return name
src/main/java/org/tinyradius/dictionary/AttributeType.java:81
↓ 4 callers
Method
getNextPacketIdentifier
Retrieves the next packet identifier to use and increments the static storage. @return the next packet identifier to use
src/main/java/org/tinyradius/packet/RadiusPacket.java:712
↓ 4 callers
Method
getProxyPort
Returns the proxy port this server listens to. Defaults to 1814. @return proxy port
src/main/java/org/tinyradius/proxy/RadiusProxy.java:88
↓ 4 callers
Method
unsignedByteToInt
(byte b)
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:320
↓ 3 callers
Method
getAttributeTypeByCode
Retrieves an attribute type by type code. This method does not retrieve vendor specific attribute types. @param typeCode type code, 1-255 @return Attr
src/main/java/org/tinyradius/dictionary/Dictionary.java:30
↓ 3 callers
Method
getAttributeTypeObject
Retrieves an AttributeType object for this attribute. @return AttributeType object for (sub-)attribute or null
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:213
↓ 3 callers
Method
getAttributeValue
Gets the value of this attribute as a string. @return value
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:100
↓ 3 callers
Method
getDictionary
Returns the dictionary this Radius packet uses. @return Dictionary instance
src/main/java/org/tinyradius/packet/RadiusPacket.java:799
↓ 3 callers
Method
getRadiusServer
Returns the Radius endpoint of the server. @return endpoint
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:45
↓ 3 callers
Method
getSharedSecret
Returns the secret shared between server and client. @return shared secret
src/main/java/org/tinyradius/util/RadiusClient.java:223
↓ 3 callers
Method
getVendorAttributes
Returns the Vendor-Specific attribute(s) for the given vendor ID. @param vendorId vendor ID of the attribute(s) @return List with VendorSp
src/main/java/org/tinyradius/packet/RadiusPacket.java:545
↓ 3 callers
Method
listen
Listens on the passed socket, blocks until stop() is called. @param s socket to listen on
src/main/java/org/tinyradius/util/RadiusServer.java:364
↓ 3 callers
Method
setDictionary
Sets a custom dictionary to use. If no dictionary is set, the default dictionary is used. @param dictionary Dictionary class to use @see D
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:144
↓ 3 callers
Method
setDictionary
Sets a custom dictionary to use. If no dictionary is set, the default dictionary is used. Also copies the dictionary to the attributes. @param dictio
src/main/java/org/tinyradius/packet/RadiusPacket.java:812
↓ 3 callers
Method
setPacketType
Sets the type of this Radius packet. @param type packet type, 0-255
src/main/java/org/tinyradius/packet/RadiusPacket.java:217
↓ 2 callers
Method
addAttributeType
Adds an AttributeType object to the dictionary. @param attributeType AttributeType object
src/main/java/org/tinyradius/dictionary/WritableDictionary.java:27
↓ 2 callers
Method
communicate
Sends a Radius packet to the server and awaits an answer. @param request packet to be sent @param port server port number @retu
src/main/java/org/tinyradius/util/RadiusClient.java:311
↓ 2 callers
Method
copyProxyState
Copies all Proxy-State attributes from the request packet to the response packet. @param request request packet @param answer r
src/main/java/org/tinyradius/util/RadiusServer.java:330
↓ 2 callers
Method
createResponseAuthenticator
Creates an authenticator for a Radius response packet. @param sharedSecret shared secret @param packetLength length of response
src/main/java/org/tinyradius/packet/RadiusPacket.java:938
↓ 2 callers
Method
encodePacket
Encodes this Radius packet and sends it to the specified output stream. @param out output stream to use @param sharedSecret sha
src/main/java/org/tinyradius/packet/RadiusPacket.java:836
↓ 2 callers
Method
encodeRequestPacket
Encodes this Radius packet and sends it to the specified output stream. @param out output stream to use @param sharedSecret sha
src/main/java/org/tinyradius/packet/RadiusPacket.java:590
↓ 2 callers
Method
getAcctSocket
Returns a socket bound to the acct port. @return socket @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:528
↓ 2 callers
Method
getAttributeClass
Retrieves the RadiusAttribute descendant class which represents attributes of this type. @return class
src/main/java/org/tinyradius/dictionary/AttributeType.java:103
↓ 2 callers
Method
getAttributeTypeClass
Returns the RadiusAttribute descendant class for the given attribute type. @param attributeType @param typeStr string|octets|integer|date
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:195
↓ 2 callers
Method
getAttributeValue
Returns the value of the Radius attribute of the given type or null if there is no such attribute. Also returns sub-attributes. @param type
src/main/java/org/tinyradius/packet/RadiusPacket.java:530
↓ 2 callers
Method
getAttributeValueInt
Returns the string value of this attribute. @return a string
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:39
↓ 2 callers
Method
getAuthPort
Returns the Radius server auth port. @return auth port
src/main/java/org/tinyradius/util/RadiusClient.java:160
↓ 2 callers
Method
getAuthSocket
Returns a socket bound to the auth port. @return socket @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:511
↓ 2 callers
Method
getDuplicateInterval
Returns the duplicate interval in ms. A packet is discarded as a duplicate if in the duplicate interval there was another packet with the same identif
src/main/java/org/tinyradius/util/RadiusServer.java:270
↓ 2 callers
Method
getEnumeration
Returns the name of the given integer value if this attribute is an enumeration, or null if it is not or if the integer value is unknown. @return nam
src/main/java/org/tinyradius/dictionary/AttributeType.java:146
↓ 2 callers
Method
getProxySocket
Returns a socket bound to the proxy port. @return socket @throws SocketException
src/main/java/org/tinyradius/proxy/RadiusProxy.java:122
↓ 2 callers
Method
getRetryCount
Returns the retry count for failed transmissions. @return retry count
src/main/java/org/tinyradius/util/RadiusClient.java:202
↓ 2 callers
Method
getSharedSecret
Returns the shared secret. @return shared secret
src/main/java/org/tinyradius/util/RadiusEndpoint.java:40
↓ 2 callers
Method
getSocketTimeout
Returns the socket timeout. @return socket timeout, ms
src/main/java/org/tinyradius/util/RadiusClient.java:244
↓ 2 callers
Method
getSocketTimeout
Returns the socket timeout (ms). @return socket timeout
src/main/java/org/tinyradius/util/RadiusServer.java:220
↓ 2 callers
Method
getUserName
Retrieves the user name from the User-Name attribute. @return user name
src/main/java/org/tinyradius/packet/AccessRequest.java:117
↓ 2 callers
Method
makeDatagramPacket
Creates a datagram packet from a RadiusPacket to be send. @param packet RadiusPacket @param port destination port number @retur
src/main/java/org/tinyradius/util/RadiusClient.java:390
↓ 2 callers
Method
makeRadiusPacket
Creates a RadiusPacket for a Radius request from a received datagram packet. @param packet received datagram @return RadiusPacket object @
src/main/java/org/tinyradius/util/RadiusServer.java:578
↓ 2 callers
Method
parseDictionary
Returns a new dictionary filled with the contents from the given input stream. @param source input stream @return dictionary object @throw
src/main/java/org/tinyradius/dictionary/DictionaryParser.java:40
↓ 2 callers
Method
processRequest
Process a single received request @param s socket to send response on @param packetIn data packet
src/main/java/org/tinyradius/util/RadiusServer.java:420
↓ 2 callers
Method
readAttribute
Reads in this attribute from the passed byte array. @param data data buffer @param offset the offset to read @param length the amount of data to read
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:173
↓ 2 callers
Method
removeAttribute
Removes the specified attribute from this packet. @param attribute RadiusAttribute to remove
src/main/java/org/tinyradius/packet/RadiusPacket.java:298
↓ 2 callers
Method
setAttributeClass
Sets the RadiusAttribute descendant class which represents attributes of this type.
src/main/java/org/tinyradius/dictionary/AttributeType.java:111
↓ 2 callers
Method
setAttributeValue
Sets the value of this attribute. @param value integer value
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:66
↓ 2 callers
Method
setAttributeValue
Sets the value of the attribute using a string. @param value value as a string
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:91
↓ 2 callers
Method
setChildVendorId
Sets the vendor ID of the child attributes. @param childVendorId
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:54
↓ 2 callers
Method
setPacketIdentifier
Sets the packet identifier for this Radius packet. @param identifier packet identifier, 0-255
src/main/java/org/tinyradius/packet/RadiusPacket.java:137
↓ 2 callers
Method
setTypeCode
Sets the Radius type code for this attribute type. @param code type code, 1-255
src/main/java/org/tinyradius/dictionary/AttributeType.java:70
↓ 2 callers
Method
writeAttribute
Returns this attribute encoded as a byte array. @return attribute
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:153
↓ 1 callers
Method
accessRequestReceived
Constructs an answer for an Access-Request packet. Either this method or isUserAuthenticated should be overriden. @param accessRequest Rad
src/main/java/org/tinyradius/util/RadiusServer.java:97
↓ 1 callers
Method
account
Sends an Accounting-Request packet and receives a response packet. @param request request packet @return Radius response packet @exception
src/main/java/org/tinyradius/util/RadiusClient.java:136
↓ 1 callers
Method
accountingRequestReceived
Constructs an answer for an Accounting-Request packet. This method should be overriden if accounting is supported. @param accountingRequest
src/main/java/org/tinyradius/util/RadiusServer.java:121
↓ 1 callers
Method
addEnumerationValue
Adds a name for an integer value of this attribute. @param num number that shall get a name @param name the name for this numbe
src/main/java/org/tinyradius/dictionary/AttributeType.java:182
↓ 1 callers
Method
addSubAttribute
Adds a sub-attribute to this attribute. @param attribute sub-attribute to add
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:88
↓ 1 callers
Method
addVendor
Adds the given vendor to the dictionary. @param vendorId vendor ID @param vendorName name of the vendor
src/main/java/org/tinyradius/dictionary/WritableDictionary.java:21
↓ 1 callers
Method
authenticate
Authenticates a user via PAP. @param userName user name @param password password @return true if authentication is successful,
src/main/java/org/tinyradius/util/RadiusClient.java:72
↓ 1 callers
Method
checkRequestAuthenticator
Checks the request authenticator against the supplied shared secret. Overriden by AccountingRequest to handle special accounting request authenticator
src/main/java/org/tinyradius/packet/RadiusPacket.java:1066
↓ 1 callers
Method
checkResponseAuthenticator
This method checks the authenticator of this Radius packet. This method may be overriden to include special attributes in the authenticator check. @p
src/main/java/org/tinyradius/packet/RadiusPacket.java:1094
↓ 1 callers
Method
createChapChallenge
Creates a random CHAP challenge using a secure random algorithm. @return 16 byte CHAP challenge
src/main/java/org/tinyradius/packet/AccessRequest.java:358
↓ 1 callers
Method
createRadiusPacket
Creates a RadiusPacket object. Depending on the passed type, an appropriate packet is created. Also sets the type, and the the packet identifier. @pa
src/main/java/org/tinyradius/packet/RadiusPacket.java:728
↓ 1 callers
Method
createRequestAuthenticator
Creates a request authenticator for this packet. This request authenticator is constructed as described in RFC 2865. @param sharedSecret s
src/main/java/org/tinyradius/packet/RadiusPacket.java:897
↓ 1 callers
Method
decodePapPassword
Decodes the passed encrypted password and returns the clear-text form. @param encryptedPass encrypted password @param sharedSecret
src/main/java/org/tinyradius/packet/AccessRequest.java:318
↓ 1 callers
Method
decodeRequestAttributes
Can be overriden to decode encoded request attributes such as User-Password. This method may use getAuthenticator() to get the request authenticator.
src/main/java/org/tinyradius/packet/RadiusPacket.java:1077
↓ 1 callers
Method
decodeRequestPacket
Reads a Radius request packet from the given input stream and creates an appropiate RadiusPacket descendant object. Reads in all attributes and return
src/main/java/org/tinyradius/packet/RadiusPacket.java:627
↓ 1 callers
Method
decodeResponsePacket
Reads a Radius response packet from the given input stream and creates an appropiate RadiusPacket descendant object. Reads in all attributes and retur
src/main/java/org/tinyradius/packet/RadiusPacket.java:651
next →
1–100 of 230, ranked by callers