|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
ObjectDigestAuthentication
RADIUS Digest Authentication system for the server according to draft-sterman-aaa-sip-00.txt for SIP and HTTP.
Typical server usage:
DigestAuthentication das = new DigestAuthentication(auth);
// Do some checking of the properties if you like.
Properties digestProps = das.getProperties();
String method = digestProps.getProperty("Method", "");
if (method.equals("INVITE"))
auth.getRADIUSServer().debugLog("Found an INVITE");
// Authenticate.
result = das.process(passwordBytes);
// If the result is PacketType.Access_Accept the
// digest authentication succeeded.
| Constructor Summary | |
DigestAuthentication(AuthInfo auth)
Constructor for digest authentication for draft-sterman-aaa-sip-00.txt. |
|
| Method Summary | |
Properties |
getProperties()
Get the request properties. |
void |
haveHA1(boolean enableHA1)
Process the digest authentication request using the given H(A1) field instead of a password. |
boolean |
process(byte[] password)
Process the digest authentication request. |
| Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DigestAuthentication(AuthInfo auth)
throws RADIUSException
auth - Authentication information.| Method Detail |
public Properties getProperties()
public void haveHA1(boolean enableHA1)
public boolean process(byte[] password)
password - Password fof HA1 value for the authentication.
if using the HA1 hash.
|
AXL RADIUS Server API V3 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||