Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
  * Conditions Of Use
  *
  * This software was developed by employees of the National Institute of
  * Standards and Technology (NIST), an agency of the Federal Government
  * and others.
  * Pursuant to title 15 Untied States Code Section 105, works of NIST
  * employees are not subject to copyright protection in the United States
  * and are considered to be in the public domain.  As a result, a formal
 * license is not needed to use the software.
 *
 * This software is provided by NIST as a service and is expressly
 * provided "AS IS."  NIST MAKES NO WARRANTY OF ANY KIND, EXPRESS, IMPLIED
 * OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTY OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT
 * AND DATA ACCURACY.  NIST does not warrant or make any representations
 * regarding the use of the software or the results thereof, including but
 * not limited to the correctness, accuracy, reliability or usefulness of
 * the software.
 *
 * Permission to use this software is contingent upon your acceptance
 * of the terms of this agreement.
 *
 */
PRODUCT OF PT INOVACAO - EST DEPARTMENT and Telecommunications Institute (Aveiro, Portugal) * /
 
 
 
 package gov.nist.javax.sip.header.ims;
 
 
"Security Mechanism Agreemet for SIP Sessions" - sec-agree: RFC 3329 + 3GPP TS33.203 (Annex H).

Headers: Security-Server + Security-Client + Security-Verify

Author(s):
Miguel Freitas (IT) PT-Inovacao
 
 
 
 public interface SecurityAgreeHeader extends ParametersHeader
 {

    
Set security mechanism.

eg: Security-Client: ipsec-3gpp

Parameters:
secMech - security mechanism name
 
     public void setSecurityMechanism(String secMechthrows ParseException;

    
Set Encryption Algorithm (ealg parameter)

Parameters:
ealg - encryption algorithm value
Throws:
java.text.ParseException
 
     public void setEncryptionAlgorithm(String ealgthrows ParseException;

    
Set Algorithm (alg parameter)

Parameters:
alg - algorithm value
Throws:
java.text.ParseException
 
     public void setAlgorithm(String algthrows ParseException;

    
Set Protocol (prot paramater)

Parameters:
prot - protocol value
Throws:
java.text.ParseException
 
     public void setProtocol(String protthrows ParseException;

    
Set Mode (mod parameter)

Parameters:
mod - mode value
Throws:
java.text.ParseException
 
     public void setMode(String modthrows ParseException;

    
Set Client SPI (spi-c parameter)

Parameters:
spic - spi-c value
Throws:
javax.sip.InvalidArgumentException
 
     public void setSPIClient(int spicthrows InvalidArgumentException;

    
Set Server SPI (spi-s parameter)

Parameters:
spis - spi-s value
Throws:
javax.sip.InvalidArgumentException - when value is not valid
 
     public void setSPIServer(int spisthrows InvalidArgumentException;

    
Set Client Port (port-c parameter)

Parameters:
portC - port-c value
Throws:
javax.sip.InvalidArgumentException - when value is not valid
    public void setPortClient(int portCthrows InvalidArgumentException;


    
Set Server Port (port-s parameter)

Parameters:
portS - port-s value
Throws:
javax.sip.InvalidArgumentException - when value is not valid
    public void setPortServer(int portSthrows InvalidArgumentException;

    
Set Preference

Parameters:
q - q parameter value
Throws:
javax.sip.InvalidArgumentException - when value is not valid
    public void setPreference(float qthrows InvalidArgumentException;



    
Get Security Mechanism

Returns:
security mechanims value
    public String getSecurityMechanism();

    
Get Encryption Algorithm

Returns:
ealg parameter value
    public String getEncryptionAlgorithm();

    
Get Algorithm

Returns:
alg parameter value
    public String getAlgorithm();

    
Get Protocol

Returns:
prot parameter value
    public String getProtocol();

    
Get Mode

Returns:
mod parameter value
    public String getMode();

    
Get Client SPI

Returns:
spi-c parameter value
    public int getSPIClient();

    
Get Server SPI

Returns:
spi-s parameter value
    public int getSPIServer();

    
Get Client Port

Returns:
port-c parameter value
    public int getPortClient();

    
Get Server Port

Returns:
port-s parameter value
    public int getPortServer();

    
Get Preference

Returns:
q parameter value
    public float getPreference();
New to GrepCode? Check out our FAQ X