|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--local.server.AuthenticationServerImpl
Class AuthenticationServerImpl implements an AuthenticationServer for HTTP Digest authentication.
| Field Summary | |
protected java.lang.String |
authentication_scheme
The authentication scheme. |
protected AuthenticationService |
authentication_service
The repository of users's authentication data. |
protected org.zoolu.tools.Log |
log
Event logger. |
protected static int |
PROXY_AUTHENTICATION
Proxy authentication. |
protected java.lang.String |
qop_options
The authentication qop-options. |
protected byte[] |
rand
The current random value. |
protected java.lang.String |
realm
The authentication realm. |
protected static int |
SERVER_AUTHENTICATION
Server authentication. |
| Constructor Summary | |
AuthenticationServerImpl(java.lang.String realm,
AuthenticationService authentication_service,
org.zoolu.tools.Log log)
Costructs a new AuthenticationServerImpl. |
|
| Method Summary | |
org.zoolu.sip.message.Message |
authenticateProxyRequest(org.zoolu.sip.message.Message msg)
Authenticates a SIP request. |
org.zoolu.sip.message.Message |
authenticateRequest(org.zoolu.sip.message.Message msg)
Authenticates a SIP request. |
protected org.zoolu.sip.message.Message |
authenticateRequest(org.zoolu.sip.message.Message msg,
int type)
Authenticates a SIP request. |
org.zoolu.sip.header.AuthenticationInfoHeader |
getAuthenticationInfoHeader()
Gets AuthenticationInfoHeader. |
protected void |
printLog(java.lang.String str,
int level)
Adds a new string to the default Log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final int SERVER_AUTHENTICATION
protected static final int PROXY_AUTHENTICATION
protected org.zoolu.tools.Log log
protected AuthenticationService authentication_service
protected java.lang.String realm
protected java.lang.String authentication_scheme
protected java.lang.String qop_options
protected byte[] rand
| Constructor Detail |
public AuthenticationServerImpl(java.lang.String realm,
AuthenticationService authentication_service,
org.zoolu.tools.Log log)
| Method Detail |
public org.zoolu.sip.message.Message authenticateRequest(org.zoolu.sip.message.Message msg)
authenticateRequest in interface AuthenticationServermsg - is the SIP request to be authenticatedpublic org.zoolu.sip.message.Message authenticateProxyRequest(org.zoolu.sip.message.Message msg)
authenticateProxyRequest in interface AuthenticationServermsg - is the SIP request to be authenticated
protected org.zoolu.sip.message.Message authenticateRequest(org.zoolu.sip.message.Message msg,
int type)
msg - is the SIP request to be authenticatedproxy_authentication - whether performing Proxy-Authentication or simple Authenticationpublic org.zoolu.sip.header.AuthenticationInfoHeader getAuthenticationInfoHeader()
getAuthenticationInfoHeader in interface AuthenticationServer
protected void printLog(java.lang.String str,
int level)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||