|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jradius.util.RadiusUtils
public final class RadiusUtils
Radius Utilities
Constructor Summary | |
---|---|
RadiusUtils()
|
Method Summary | |
---|---|
static java.lang.String |
byteArrayToHexString(byte[] in)
Converts a hex array to a human readable string |
static byte[] |
encodePapPassword(java.security.MessageDigest md5,
byte[] userPass,
byte[] requestAuthenticator,
java.lang.String sharedSecret)
This method encodes the plaintext user password according to RFC 2865 |
static byte[] |
makeRFC2865RequestAuthenticator(java.security.MessageDigest md5,
java.lang.String sharedSecret)
This method builds a Request Authenticator for use in outgoing RADIUS Access-Request packets as specified in RFC 2865. |
static byte[] |
makeRFC2865ResponseAuthenticator(java.security.MessageDigest md5,
java.lang.String sharedSecret,
byte code,
byte identifier,
short length,
byte[] requestAuthenticator,
byte[] responseAttributeBytes)
This method builds a Response Authenticator for use in validating responses from the RADIUS Authentication process as specified in RFC 2865. |
static byte[] |
makeRFC2866RequestAuthenticator(java.security.MessageDigest md5,
java.lang.String sharedSecret,
byte code,
byte identifier,
int length,
byte[] requestAttributes)
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(java.security.MessageDigest md5, byte[] userPass, byte[] requestAuthenticator, java.lang.String sharedSecret)
userPass
- java.lang.String the password to encryptrequestAuthenticator
- byte[] the requestAuthenicator to use in the encryption
public static byte[] makeRFC2865RequestAuthenticator(java.security.MessageDigest md5, java.lang.String sharedSecret)
public static byte[] makeRFC2865ResponseAuthenticator(java.security.MessageDigest md5, java.lang.String sharedSecret, byte code, byte identifier, short length, byte[] requestAuthenticator, byte[] responseAttributeBytes)
code
- byteidentifier
- bytelength
- shortrequestAuthenticator
- byte[]responseAttributeBytes
- byte[]
public static byte[] makeRFC2866RequestAuthenticator(java.security.MessageDigest md5, java.lang.String sharedSecret, byte code, byte identifier, int length, byte[] requestAttributes)
code
- byteidentifier
- bytelength
- shortrequestAttributes
- byte[]
public static java.lang.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 |