MSIPSecSecurityMechanism Class Reference
class MSIPSecSecurityMechanism |
Class provides functions for maintaing security information in security cache.
Public Member Functions |
---|
| ~MSIPSecSecurityMechanism() |
void | AddSecurityParamsL(TSIPTransportParams &, CSIPRequest &, TRegistrationId, TTransactionId, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *) |
void | CancelPendingOperations(MSIPSecSecurityMechanismObserver *) |
void | ClearCache(MSIPSecUser *) |
TInt
| IgnoreChallenge(TTransactionId, const TDesC8 &, const MSIPSecUser *) |
void | InitializeSecurityClientL(CSIPSecurityClientHeader &) |
TBool
| IsServerInitiatedSecAgreeAllowed() |
const TDesC8 & | Name() |
TBool
| ParametersUpdatedL(MSIPSecUser *) |
void | ProcessSecurityVerifyL(TSIPTransportParams &, CSIPRequest &, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *, TRegistrationId, RPointerArray< CSIPSecurityServerHeader > &, RPointerArray< CSIPSecurityVerifyHeader > &) |
TInt
| RemoveCredentials(const TDesC8 &) |
TBool
| ResponseReceivedL(TSIPTransportParams &, CSIPResponse &, CSIPRequest &, TRegistrationId, TTransactionId, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *, MSIPSecSecurityMechanismObserver &) |
void | SetCredentialsL(TTransactionId, const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &) |
void | SetCredentialsL(const MSIPSecUser &, const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &) |
Constructor & Destructor Documentation
~MSIPSecSecurityMechanism()
~MSIPSecSecurityMechanism | ( | ) | [inline, virtual] |
Member Functions Documentation
AddSecurityParamsL(TSIPTransportParams &, CSIPRequest &, TRegistrationId, TTransactionId, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *)
Adds the cached security parameters to the SIP request. If no cache entries are found returns without any error.
Parameters
TSIPTransportParams & aTransportParams | Params to be used when creating IPSec SAs |
CSIPRequest & aRequest | SIP request where the security parameters will be added |
TRegistrationId aRegistrationId | registration ID |
TTransactionId aTransactionId | transaction ID |
TInetAddr & aNextHop | the next hop of the request IP address or a domain name |
const CUri8 & aRemoteTarget | Remote target of the request |
const TDesC8 & aOutboundProxy | the outbound proxy of the request IP address or a domain name. Zero-length if not present. |
MSIPSecUser * aUser | the user for the possible cache entries The ownership is NOT transferred. |
CancelPendingOperations(MSIPSecSecurityMechanismObserver *)
Cancels all the pending asynchronous operations for the given observer.
ClearCache(MSIPSecUser *)
Clears all the cached information for the given user.
Parameters
MSIPSecUser * aUser | the user for the cache entries The ownership is NOT transferred. |
IgnoreChallenge(TTransactionId, const TDesC8 &, const MSIPSecUser *)
Ignores the challenge for the realm. As a result the error will be generated to the original request in case.
Parameters
TTransactionId aTransactionId | transaction ID if available, otherwise KEmptyTransactionId |
const TDesC8 & aRealm | a realm for which the challenge was ignored |
const MSIPSecUser * aTrustedUser | the trusted user for the ignored challenge |
InitializeSecurityClientL(CSIPSecurityClientHeader &)
Mechanism should verify that Security-Client header contains all parameters which are needed for the mechanism. This function is called only when the first request is being sent to the next hop.
IsServerInitiatedSecAgreeAllowed()
TBool
| IsServerInitiatedSecAgreeAllowed | ( | ) | const [pure virtual] |
Mechanism returns information whether it is allowed to be selected when security agreement is initiated by the server.
Name()
const TDesC8 & | Name | ( | ) | const [pure virtual] |
Gets the name of the mechanism
ParametersUpdatedL(MSIPSecUser *)
Parameters
MSIPSecUser * aUser | SIPSec user. The ownership is NOT transferred. |
ProcessSecurityVerifyL(TSIPTransportParams &, CSIPRequest &, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *, TRegistrationId, RPointerArray< CSIPSecurityServerHeader > &, RPointerArray< CSIPSecurityVerifyHeader > &)
Mechanism should verify that Security-Verify header contains all parameters which are needed for the mechanism. The function is called for every request after sec-agreement was established with the next hop.
RemoveCredentials(const TDesC8 &)
TInt
| RemoveCredentials | ( | const TDesC8 & | aRealm | ) | [pure virtual] |
Removes all set credentials for the realm
Parameters
const TDesC8 & aRealm | servers's realm |
ResponseReceivedL(TSIPTransportParams &, CSIPResponse &, CSIPRequest &, TRegistrationId, TTransactionId, TInetAddr &, const CUri8 &, const TDesC8 &, MSIPSecUser *, MSIPSecSecurityMechanismObserver &)
Updates the SIPSec cache if necessary. If nothing was updated returns without any error. May lead to asynchronous processing. If so, returns ETrue and the user must wait for the cache to be updated before sending the SIP request again.
Parameters
TSIPTransportParams & aTransportParams | Params to be used when creating IPSec SAs |
CSIPResponse & aResponse | SIP response to be processed to update the cache |
CSIPRequest & aRequest | IN: SIP request related to the aResponse |
TRegistrationId aRegistrationId | registration ID |
TTransactionId aTransactionId | transaction ID |
TInetAddr & aNextHop | the next hop of the original request IP address or a domain name |
const CUri8 & aRemoteTarget | Remote target of the original request |
const TDesC8 & aOutboundProxy | the outbound proxy of the original request IP address or a domain name. Zero-length if not present. |
MSIPSecUser * aUser | the user for the possible cache entries, Can be used to getting the credentials for the cache. The ownership is NOT transferred. |
MSIPSecSecurityMechanismObserver & aObserver | observer that will be notified when after an asynchronous cache update has been completed. The ownership is NOT transferred. |
SetCredentialsL(TTransactionId, const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
Parameters
TTransactionId aTransactionId | transaction ID if available, otherwise KEmptyTransactionId |
const TDesC8 & aRealm | the realm for the credentials |
const TDesC8 & aOutboundProxy | Outbound proxy |
const TDesC8 & aUserName | the username |
const TDesC8 & aPassword | the password |
SetCredentialsL(const MSIPSecUser &, const TDesC8 &, const TDesC8 &, const TDesC8 &, const TDesC8 &)
Parameters
const MSIPSecUser & aUser | SIPSec user who provides the credentials |
const TDesC8 & aRealm | the realm for the credentials |
const TDesC8 & aOutboundProxy | Outbound proxy |
const TDesC8 & aUserName | the username |
const TDesC8 & aPassword | the password |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.