JAIN-SIP 2.0 API

javax.sip
Interface UserCredentialHash


public interface UserCredentialHash

Interface for those accounts that only supply hash(user:domain:password). This is more secure than simply supplying password because the password cannot be extracted from MD5Hash(user:domain:password). In general, passwords should never be stored in the clear. Applications prefer to store information in user accounts using such a password hash rather than plain text passwords because it offers better security. This class is implemented by the application and is used by the sip stack when dealing with challenge responses. The JAIN-SIP implementation provides the SecureAuthenticationHelper implementation. The application provides the implementation of SecureAccountManager. The secure AccountManager is called back when dealing with authentication challenges and is expected to provide UserCredentialHash corresponding to the user account for the challenged transaction.

Since:
2.0
Version:
2.0
See Also:
SipStack.getSecureAuthenticationHelper(SecureAccountManager, javax.sip.header.HeaderFactory), SecureAccountManager, AuthenticationHelper

Method Summary
 String getHashUserDomainPassword()
          Get the MD5(userName:sipdomain:password)
 String getSipDomain()
          Get the SipDomain.
 String getUserName()
          Get the user name.
 

Method Detail

getUserName

String getUserName()
Get the user name.

Returns:
userName

getSipDomain

String getSipDomain()
Get the SipDomain.

Returns:
the SIP Domain.

getHashUserDomainPassword

String getHashUserDomainPassword()
Get the MD5(userName:sipdomain:password)

Returns:
the MD5 hash of userName:sipDomain:password.

JAIN-SIP 2.0 API


See conditions of use.
Submit a bug report or feature request.