MCPcopy Index your code

hub / github.com/ctran/TinyRadius / functions

Functions230 in github.com/ctran/TinyRadius

↓ 23 callersMethodaddAttribute
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 callersMethodgetAttributeData
Returns the data for this attribute. @return attribute data
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:48
↓ 14 callersMethodgetAuthenticator
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 callersMethodgetChildVendorId
Returns the vendor ID of the sub-attributes. @return vendor ID of sub attributes
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:63
↓ 12 callersMethodgetPort
Returns the port number the proxied packet arrived at originally. @return port number
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:62
↓ 11 callersMethodgetAttributeType
Returns the type of this Radius attribute. @return type code, 0-255
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:69
↓ 11 callersMethodgetPacketType
Returns the type of this Radius packet. @return packet type
src/main/java/org/tinyradius/packet/RadiusPacket.java:148
↓ 10 callersMethodgetAttributes
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 callersMethodgetPacketIdentifier
Returns the packet identifier for this Radius packet. @return packet identifier
src/main/java/org/tinyradius/packet/RadiusPacket.java:127
↓ 10 callersMethodgetUtf8Bytes
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 callersMethodsetAttributeData
Sets the data for this attribute. @param attributeData attribute data
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:58
↓ 10 callersMethodsetAttributeType
Sets the type of this Radius attribute. @param attributeType type code, 0-255
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:79
↓ 8 callersMethodgetMd5Digest
Returns a MD5 digest. @return MessageDigest object
src/main/java/org/tinyradius/packet/RadiusPacket.java:1108
↓ 7 callersMethodclose
Closes the socket of this client.
src/main/java/org/tinyradius/util/RadiusClient.java:150
↓ 7 callersMethodgetAttribute
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 callersMethodgetAuthProtocol
Returns the protocol used for encrypting the passphrase. @return AUTH_PAP or AUTH_CHAP
src/main/java/org/tinyradius/packet/AccessRequest.java:131
↓ 7 callersMethodgetDefaultDictionary
Returns the singleton instance of this object. @return DefaultDictionary instance
src/main/java/org/tinyradius/dictionary/DefaultDictionary.java:26
↓ 7 callersMethodgetEndpointAddress
Returns the remote address. @return remote address
src/main/java/org/tinyradius/util/RadiusEndpoint.java:32
↓ 7 callersMethodgetVendorId
Returns the vendor ID. No vendor specific attribute = -1 @return vendor ID
src/main/java/org/tinyradius/dictionary/AttributeType.java:125
↓ 7 callersMethodsetAuthProtocol
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 callersMethodgetListenAddress
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 callersMethodgetTypeCode
Retrieves the Radius type code for this attribute type. @return Radius type code
src/main/java/org/tinyradius/dictionary/AttributeType.java:60
↓ 6 callersMethodgetVendorId
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 callersMethodgetVendorId
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 callersMethodremoveAttributes
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 callersMethodtoString
String representation of this packet, for debugging purposes. @see java.lang.Object#toString()
src/main/java/org/tinyradius/packet/RadiusPacket.java:755
↓ 5 callersMethoddecodePacket
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 callersMethodgetAttributeTypeByName
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 callersMethodgetDictionary
Returns the dictionary this Radius attribute uses. @return Dictionary instance
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:132
↓ 5 callersMethodgetSubAttributes
Returns the list of sub-attributes. @return List of RadiusAttribute objects
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:140
↓ 5 callersMethodsetName
Sets the name of this type. @param name type name
src/main/java/org/tinyradius/dictionary/AttributeType.java:91
↓ 5 callersMethodtoString
String representation for debugging purposes. @see java.lang.Object#toString()
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:189
↓ 4 callersMethodcreateRadiusAttribute
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 callersMethodgetAcctPort
Returns the acct port the server will listen on. @return acct port
src/main/java/org/tinyradius/util/RadiusServer.java:258
↓ 4 callersMethodgetAuthPort
Returns the auth port the server will listen on. @return auth port
src/main/java/org/tinyradius/util/RadiusServer.java:198
↓ 4 callersMethodgetName
Retrieves the name of this type. @return name
src/main/java/org/tinyradius/dictionary/AttributeType.java:81
↓ 4 callersMethodgetNextPacketIdentifier
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 callersMethodgetProxyPort
Returns the proxy port this server listens to. Defaults to 1814. @return proxy port
src/main/java/org/tinyradius/proxy/RadiusProxy.java:88
↓ 4 callersMethodunsignedByteToInt
(byte b)
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:320
↓ 3 callersMethodgetAttributeTypeByCode
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 callersMethodgetAttributeTypeObject
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 callersMethodgetAttributeValue
Gets the value of this attribute as a string. @return value
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:100
↓ 3 callersMethodgetDictionary
Returns the dictionary this Radius packet uses. @return Dictionary instance
src/main/java/org/tinyradius/packet/RadiusPacket.java:799
↓ 3 callersMethodgetRadiusServer
Returns the Radius endpoint of the server. @return endpoint
src/main/java/org/tinyradius/proxy/RadiusProxyConnection.java:45
↓ 3 callersMethodgetSharedSecret
Returns the secret shared between server and client. @return shared secret
src/main/java/org/tinyradius/util/RadiusClient.java:223
↓ 3 callersMethodgetVendorAttributes
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 callersMethodlisten
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 callersMethodsetDictionary
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 callersMethodsetDictionary
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 callersMethodsetPacketType
Sets the type of this Radius packet. @param type packet type, 0-255
src/main/java/org/tinyradius/packet/RadiusPacket.java:217
↓ 2 callersMethodaddAttributeType
Adds an AttributeType object to the dictionary. @param attributeType AttributeType object
src/main/java/org/tinyradius/dictionary/WritableDictionary.java:27
↓ 2 callersMethodcommunicate
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 callersMethodcopyProxyState
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 callersMethodcreateResponseAuthenticator
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 callersMethodencodePacket
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 callersMethodencodeRequestPacket
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 callersMethodgetAcctSocket
Returns a socket bound to the acct port. @return socket @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:528
↓ 2 callersMethodgetAttributeClass
Retrieves the RadiusAttribute descendant class which represents attributes of this type. @return class
src/main/java/org/tinyradius/dictionary/AttributeType.java:103
↓ 2 callersMethodgetAttributeTypeClass
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 callersMethodgetAttributeValue
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 callersMethodgetAttributeValueInt
Returns the string value of this attribute. @return a string
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:39
↓ 2 callersMethodgetAuthPort
Returns the Radius server auth port. @return auth port
src/main/java/org/tinyradius/util/RadiusClient.java:160
↓ 2 callersMethodgetAuthSocket
Returns a socket bound to the auth port. @return socket @throws SocketException
src/main/java/org/tinyradius/util/RadiusServer.java:511
↓ 2 callersMethodgetDuplicateInterval
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 callersMethodgetEnumeration
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 callersMethodgetProxySocket
Returns a socket bound to the proxy port. @return socket @throws SocketException
src/main/java/org/tinyradius/proxy/RadiusProxy.java:122
↓ 2 callersMethodgetRetryCount
Returns the retry count for failed transmissions. @return retry count
src/main/java/org/tinyradius/util/RadiusClient.java:202
↓ 2 callersMethodgetSharedSecret
Returns the shared secret. @return shared secret
src/main/java/org/tinyradius/util/RadiusEndpoint.java:40
↓ 2 callersMethodgetSocketTimeout
Returns the socket timeout. @return socket timeout, ms
src/main/java/org/tinyradius/util/RadiusClient.java:244
↓ 2 callersMethodgetSocketTimeout
Returns the socket timeout (ms). @return socket timeout
src/main/java/org/tinyradius/util/RadiusServer.java:220
↓ 2 callersMethodgetUserName
Retrieves the user name from the User-Name attribute. @return user name
src/main/java/org/tinyradius/packet/AccessRequest.java:117
↓ 2 callersMethodmakeDatagramPacket
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 callersMethodmakeRadiusPacket
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 callersMethodparseDictionary
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 callersMethodprocessRequest
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 callersMethodreadAttribute
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 callersMethodremoveAttribute
Removes the specified attribute from this packet. @param attribute RadiusAttribute to remove
src/main/java/org/tinyradius/packet/RadiusPacket.java:298
↓ 2 callersMethodsetAttributeClass
Sets the RadiusAttribute descendant class which represents attributes of this type.
src/main/java/org/tinyradius/dictionary/AttributeType.java:111
↓ 2 callersMethodsetAttributeValue
Sets the value of this attribute. @param value integer value
src/main/java/org/tinyradius/attribute/IntegerAttribute.java:66
↓ 2 callersMethodsetAttributeValue
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 callersMethodsetChildVendorId
Sets the vendor ID of the child attributes. @param childVendorId
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:54
↓ 2 callersMethodsetPacketIdentifier
Sets the packet identifier for this Radius packet. @param identifier packet identifier, 0-255
src/main/java/org/tinyradius/packet/RadiusPacket.java:137
↓ 2 callersMethodsetTypeCode
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 callersMethodwriteAttribute
Returns this attribute encoded as a byte array. @return attribute
src/main/java/org/tinyradius/attribute/RadiusAttribute.java:153
↓ 1 callersMethodaccessRequestReceived
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 callersMethodaccount
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 callersMethodaccountingRequestReceived
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 callersMethodaddEnumerationValue
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 callersMethodaddSubAttribute
Adds a sub-attribute to this attribute. @param attribute sub-attribute to add
src/main/java/org/tinyradius/attribute/VendorSpecificAttribute.java:88
↓ 1 callersMethodaddVendor
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 callersMethodauthenticate
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 callersMethodcheckRequestAuthenticator
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 callersMethodcheckResponseAuthenticator
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 callersMethodcreateChapChallenge
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 callersMethodcreateRadiusPacket
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 callersMethodcreateRequestAuthenticator
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 callersMethoddecodePapPassword
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 callersMethoddecodeRequestAttributes
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 callersMethoddecodeRequestPacket
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 callersMethoddecodeResponsePacket
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