public abstract class SecurityAgree extends ParametersHeader
Headers: Security-Server + Security-Client + Security-Verify
duplicates, parametersheaderNameAND, AT, COLON, COMMA, DOT, DOUBLE_QUOTE, EQUALS, GREATER_THAN, HT, immutableClasses, indentation, LESS_THAN, LPAREN, matchExpression, NEWLINE, PERCENT, POUND, QUESTION, QUOTE, RETURN, RPAREN, SEMICOLON, SLASH, SP, STAR, stringRepresentationACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE| Constructor and Description |
|---|
SecurityAgree()
Default constructor
|
SecurityAgree(String name)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Clones this object.
|
StringBuilder |
encodeBody(StringBuilder retval)
Encode the body of this header (the stuff that follows headerName).
|
boolean |
equals(Object other)
An introspection based equality predicate for SIPObjects.
|
String |
getAlgorithm()
Get Algorithm
|
String |
getEncryptionAlgorithm()
Get Encryption Algorithm
|
String |
getMode()
Get Mode
|
int |
getPortClient()
Get Client Port
|
int |
getPortServer()
Get Server Port
|
float |
getPreference()
Get Preference
|
String |
getProtocol()
Get Protocol
|
String |
getSecurityMechanism()
Get Security Mechanism
|
int |
getSPIClient()
Get Client SPI
|
int |
getSPIServer()
Get Server SPI
|
void |
setAlgorithm(String alg)
Set Algorithm (alg parameter)
|
void |
setEncryptionAlgorithm(String ealg)
Set Encryption Algorithm (ealg parameter)
|
void |
setMode(String mod)
Set Mode (mod parameter)
|
void |
setParameter(String name,
String value)
Sets the value of the specified parameter.
|
void |
setPortClient(int portC)
Set Client Port (port-c parameter)
|
void |
setPortServer(int portS)
Set Server Port (port-s parameter)
|
void |
setPreference(float q)
Set Preference.
|
void |
setProtocol(String prot)
Set Protocol (prot paramater)
|
void |
setSecurityMechanism(String secMech)
Set security mechanism.
|
void |
setSPIClient(int spic)
Set Client SPI (spi-c parameter)
|
void |
setSPIServer(int spis)
Set Server SPI (spi-s parameter)
|
equalParameters, getMultiParameter, getMultiParameterNames, getMultiParameters, getMultiParameterValue, getNameValue, getParameter, getParameter, getParameterAsBoolean, getParameterAsFloat, getParameterAsHexInt, getParameterAsInt, getParameterAsLong, getParameterAsURI, getParameterNames, getParameters, getParameterValue, hasMultiParameter, hasMultiParameters, hasParameter, hasParameters, removeMultiParameter, removeMultiParameters, removeParameter, removeParameters, setMultiParameter, setMultiParameter, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setQuotedParameterencode, encode, getHeaderName, getHeaderValue, getName, getValue, hashCode, isHeaderList, setHeaderName, toStringdbgPrint, debugDump, debugDump, matchdbgPrint, getClassFromName, getIndentation, getMatcher, isMySubclass, makeClone, merge, setMatcher, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprint, sprintpublic SecurityAgree(String name)
name - - name of the Security Agree header to createpublic SecurityAgree()
public void setParameter(String name, String value) throws ParseException
ParametersHeadersetParameter in interface ParameterssetParameter in class ParametersHeadername - - a String specifying the parameter namevalue - - a String specifying the parameter valueParseException - which signals that an error has been reached
unexpectedly while parsing the parameter name or value.public StringBuilder encodeBody(StringBuilder retval)
SIPHeaderencodeBody in class ParametersHeaderpublic void setSecurityMechanism(String secMech) throws ParseException
eg: Security-Client: ipsec-3gpp
secMech - - security mechanism nameParseExceptionpublic void setEncryptionAlgorithm(String ealg) throws ParseException
ealg - - encryption algorithm valueParseExceptionpublic void setAlgorithm(String alg) throws ParseException
alg - - algorithm valueParseExceptionpublic void setProtocol(String prot) throws ParseException
prot - - protocol valueParseExceptionpublic void setMode(String mod) throws ParseException
mod - - mode valueParseExceptionpublic void setSPIClient(int spic)
throws InvalidArgumentException
spic - - spi-c valueInvalidArgumentExceptionpublic void setSPIServer(int spis)
throws InvalidArgumentException
spis - - spi-s valueInvalidArgumentException - - when value is not validpublic void setPortClient(int portC)
throws InvalidArgumentException
portC - - port-c valueInvalidArgumentException - - when value is not validpublic void setPortServer(int portS)
throws InvalidArgumentException
portS - - port-s valueInvalidArgumentException - - when value is not validpublic void setPreference(float q)
throws InvalidArgumentException
Set Preference. The "q" parameter indicates a relative preference for the particular mechanism. The higher the value the more preferred the mechanism is. Range from 0.001 to 0.999.
q - - q parameter valueInvalidArgumentException - - when value is not validpublic String getSecurityMechanism()
public String getEncryptionAlgorithm()
public String getAlgorithm()
public String getProtocol()
public String getMode()
public int getSPIClient()
public int getSPIServer()
public int getPortClient()
public int getPortServer()
public float getPreference()
public boolean equals(Object other)
SIPObjectpublic Object clone()
GenericObjectclone in interface Headerclone in class ParametersHeaderCopyright © 2018. All Rights Reserved.