1package gov.nist.javax.sip.clientauthutils;
2
3/**
4 * Interface for those clients that only supply
5 * hash(user:domain:password). This is more secure than simply supplying
6 * password because the password cannot be extracted. Implementations
7 * tend to prefer to store information in user accounts using such a
8 * hash rather than plain text passwords because it offers better security.
9 *
10 */
11public interface UserCredentialHash {
12
13    /**
14     * Get the user name.
15     *
16     * @return userName
17     */
18    public String getUserName();
19
20
21    /**
22     * Get the SipDomain.
23     *
24     * @return the SIP Domain.
25     */
26    public String getSipDomain();
27
28
29    /**
30     * Get the MD5(userName:sipdomain:password)
31     *
32     * @return the MD5 hash of userName:sipDomain:password.
33     */
34    public String getHashUserDomainPassword();
35
36}
37