| examples.authorization.AuthenticationMethod
All known Subclasses: examples.authorization.DigestServerAuthenticationMethod,
AuthenticationMethod | public interface AuthenticationMethod (Code) | | |
doAuthenticate | public boolean doAuthenticate(String username, AuthorizationHeader authorizationHeader, Request request)(Code) | | Check the response and answer true if authentication succeeds. Not all of
these fields are relevant for every method - a basic scheme may simply do
a username password check.
Parameters: username - is the username and password. Parameters: authorizationHeader - is the authorization header from the SIP request. Parameters: requestLine - is the RequestLine from the SIP Request. |
generateNonce | public String generateNonce()(Code) | | Generate the challenge string.
|
getAlgorithm | public String getAlgorithm()(Code) | | Get the authentication Algorithm
|
getDomain | public String getDomain()(Code) | | get the authentication domain.
|
getScheme | public String getScheme()(Code) | | Get the authentication scheme
|
initialize | public void initialize()(Code) | | Initialize the authentication method. This has to be done outside the
constructor as the constructor is generic (created from the class name
specified in the authentication method).
|
|
|