|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.jradius.util.RadiusUtils
public final class RadiusUtils
Radius Utilities
Constructor Summary | |
---|---|
RadiusUtils()
|
Method Summary | |
---|---|
static String |
byteArrayToHexString(byte[] in)
Converts a binary array to a human readable string |
static byte[] |
decodePapPassword(byte[] encryptedPass,
byte[] authenticator,
String sharedSecret)
|
static byte[] |
encodePapPassword(byte[] userPass,
byte[] requestAuthenticator,
String sharedSecret)
This method encodes the plaintext user password according to RFC 2865 |
static byte[] |
makeRFC2865RequestAuthenticator(String sharedSecret)
This method builds a Request Authenticator for use in outgoing RADIUS Access-Request packets as specified in RFC 2865. |
static byte[] |
makeRFC2865ResponseAuthenticator(String sharedSecret,
byte code,
byte identifier,
short length,
byte[] requestAuthenticator,
byte[] responseAttributeBytes,
int responseAttributeLength)
This method builds a Response Authenticator for use in validating responses from the RADIUS Authentication process as specified in RFC 2865. |
static byte[] |
makeRFC2866RequestAuthenticator(String sharedSecret,
byte code,
byte identifier,
int length,
byte[] requestAttributes,
int attributesOffset,
int attributesLength)
This method builds a Request Authenticator for use in RADIUS Accounting packets as specified in RFC 2866. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RadiusUtils()
Method Detail |
---|
public static byte[] encodePapPassword(byte[] userPass, byte[] requestAuthenticator, String sharedSecret)
userPass
- java.lang.String the password to encryptrequestAuthenticator
- byte[] the requestAuthenicator to use in the encryption
public static byte[] decodePapPassword(byte[] encryptedPass, byte[] authenticator, String sharedSecret)
public static byte[] makeRFC2865RequestAuthenticator(String sharedSecret)
public static byte[] makeRFC2865ResponseAuthenticator(String sharedSecret, byte code, byte identifier, short length, byte[] requestAuthenticator, byte[] responseAttributeBytes, int responseAttributeLength)
code
- byteidentifier
- bytelength
- shortrequestAuthenticator
- byte[]responseAttributeBytes
- byte[]
public static byte[] makeRFC2866RequestAuthenticator(String sharedSecret, byte code, byte identifier, int length, byte[] requestAttributes, int attributesOffset, int attributesLength)
code
- byteidentifier
- bytelength
- shortrequestAttributes
- byte[]
public static String byteArrayToHexString(byte[] in)
in
- bytes to be hexed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |