NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip
Interface UtilsExt

All Known Implementing Classes:
Utils

public interface UtilsExt

Author:
jean.deruelle@gmail.com

Method Summary
 String generateBranchId()
          Generate a cryptographically random identifier that can be used to generate a branch identifier.
 String generateCallIdentifier(String address)
          Generate a call identifier.
 String generateTag()
          Generate a tag for a FROM header or TO header.
 

Method Detail

generateCallIdentifier

String generateCallIdentifier(String address)
Generate a call identifier. This is useful when we want to generate a call identifier in advance of generating a message.

Since:
2.0

generateTag

String generateTag()
Generate a tag for a FROM header or TO header. Just return a random 4 digit integer (should be enough to avoid any clashes!) Tags only need to be unique within a call.

Returns:
a string that can be used as a tag parameter. synchronized: needed for access to 'rand', else risk to generate same tag twice
Since:
2.0

generateBranchId

String generateBranchId()
Generate a cryptographically random identifier that can be used to generate a branch identifier.

Returns:
a cryptographically random gloablly unique string that can be used as a branch identifier.
Since:
2.0

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Submit a bug report or feature request.