reSIProcate/stack  9694
Public Types | Public Member Functions | Private Attributes | Friends
resip::SecurityAttributes Class Reference

#include <SecurityAttributes.hxx>

Collaboration diagram for resip::SecurityAttributes:
Collaboration graph
[legend]

List of all members.

Public Types

enum  OutgoingEncryptionLevel { None, Sign, Encrypt, SignAndEncrypt }
enum  IdentityStrength { From, FailedIdentity, Identity }

Public Member Functions

 SecurityAttributes ()
 ~SecurityAttributes ()
SignatureStatus getSignatureStatus () const
bool isEncrypted () const
void setEncrypted ()
void setSignatureStatus (SignatureStatus status)
void setIdentity (const Data &identity)
const DatagetIdentity () const
void setIdentityStrength (IdentityStrength strength)
IdentityStrength getIdentityStrength () const
void setSigner (const Data &signer)
const DatagetSigner () const
OutgoingEncryptionLevel getOutgoingEncryptionLevel () const
void setOutgoingEncryptionLevel (OutgoingEncryptionLevel level)
bool encryptionPerformed () const
void setEncryptionPerformed (bool performed)

Private Attributes

bool mIsEncrypted
SignatureStatus mSigStatus
Data mSigner
Data mIdentity
IdentityStrength mStrength
OutgoingEncryptionLevel mLevel
bool mEncryptionPerformed

Friends

EncodeStreamoperator<< (EncodeStream &strm, const SecurityAttributes &sa)

Detailed Description

Definition at line 21 of file SecurityAttributes.hxx.


Member Enumeration Documentation

Enumerator:
From 
FailedIdentity 
Identity 

Definition at line 29 of file SecurityAttributes.hxx.

Enumerator:
None 
Sign 
Encrypt 
SignAndEncrypt 

Definition at line 27 of file SecurityAttributes.hxx.


Constructor & Destructor Documentation

SecurityAttributes::SecurityAttributes ( )

Definition at line 5 of file SecurityAttributes.cxx.

                                        :
   
   mIsEncrypted(false),
   mSigStatus(SignatureNone),
   mStrength(From),
   mLevel(None),
   mEncryptionPerformed(false)
{}
SecurityAttributes::~SecurityAttributes ( )

Definition at line 14 of file SecurityAttributes.cxx.

{};

Member Function Documentation

bool resip::SecurityAttributes::encryptionPerformed ( ) const [inline]

Definition at line 90 of file SecurityAttributes.hxx.

References mEncryptionPerformed.

      {
         return mEncryptionPerformed;
      }
const Data& resip::SecurityAttributes::getIdentity ( ) const [inline]

Definition at line 55 of file SecurityAttributes.hxx.

References mIdentity.

      {
         return mIdentity;
      }
IdentityStrength resip::SecurityAttributes::getIdentityStrength ( ) const [inline]

Definition at line 65 of file SecurityAttributes.hxx.

References mStrength.

      {
         return mStrength;
      }
OutgoingEncryptionLevel resip::SecurityAttributes::getOutgoingEncryptionLevel ( ) const [inline]

Definition at line 80 of file SecurityAttributes.hxx.

References mLevel.

      {
         return mLevel;
      }
SignatureStatus resip::SecurityAttributes::getSignatureStatus ( ) const [inline]

Definition at line 31 of file SecurityAttributes.hxx.

References mSigStatus.

      {
         return mSigStatus;
      }
const Data& resip::SecurityAttributes::getSigner ( ) const [inline]

Definition at line 75 of file SecurityAttributes.hxx.

References mSigner.

      {
         return mSigner;
      }
bool resip::SecurityAttributes::isEncrypted ( ) const [inline]

Definition at line 36 of file SecurityAttributes.hxx.

References mIsEncrypted.

      {
         return mIsEncrypted;
      }
void resip::SecurityAttributes::setEncrypted ( ) [inline]

Definition at line 40 of file SecurityAttributes.hxx.

References mIsEncrypted.

Referenced by extractFromPkcs7Recurse().

      {
         mIsEncrypted = true;
      }
void resip::SecurityAttributes::setEncryptionPerformed ( bool  performed) [inline]

Definition at line 95 of file SecurityAttributes.hxx.

References mEncryptionPerformed.

      {
         mEncryptionPerformed = performed;
      }
void resip::SecurityAttributes::setIdentity ( const Data identity) [inline]

Definition at line 50 of file SecurityAttributes.hxx.

References mIdentity.

Referenced by resip::Helper::extractFromPkcs7().

      {
         mIdentity = identity;
      }
void resip::SecurityAttributes::setIdentityStrength ( IdentityStrength  strength) [inline]

Definition at line 60 of file SecurityAttributes.hxx.

References mStrength.

      {
         mStrength = strength;         
      }      
void resip::SecurityAttributes::setOutgoingEncryptionLevel ( OutgoingEncryptionLevel  level) [inline]

Definition at line 85 of file SecurityAttributes.hxx.

References mLevel.

      {
         mLevel = level;
      }
void resip::SecurityAttributes::setSignatureStatus ( SignatureStatus  status) [inline]

Definition at line 45 of file SecurityAttributes.hxx.

References mSigStatus.

      {
         mSigStatus = status;
      }
void resip::SecurityAttributes::setSigner ( const Data signer) [inline]

Definition at line 70 of file SecurityAttributes.hxx.

References mSigner.

      {
         mSigner = signer;
      }

Friends And Related Function Documentation

EncodeStream& operator<< ( EncodeStream strm,
const SecurityAttributes sa 
) [friend]

Member Data Documentation

Definition at line 109 of file SecurityAttributes.hxx.

Referenced by encryptionPerformed(), and setEncryptionPerformed().

Definition at line 106 of file SecurityAttributes.hxx.

Referenced by getIdentity(), and setIdentity().

Definition at line 103 of file SecurityAttributes.hxx.

Referenced by isEncrypted(), and setEncrypted().

Definition at line 105 of file SecurityAttributes.hxx.

Referenced by getSigner(), and setSigner().

SignatureStatus resip::SecurityAttributes::mSigStatus [private]

Definition at line 104 of file SecurityAttributes.hxx.

Referenced by getSignatureStatus(), and setSignatureStatus().

Definition at line 107 of file SecurityAttributes.hxx.

Referenced by getIdentityStrength(), and setIdentityStrength().


The documentation for this class was generated from the following files: