MSecurityDialog Class Reference

class MSecurityDialog
Definition of the security dialog interface
Since
7.0

Constructor & Destructor Documentation

~MSecurityDialog()

~MSecurityDialog()[protected, inline, pure virtual]

Destructor for the MSecurityDialog class

Member Functions Documentation

Cancel()

voidCancel()[pure virtual]

Cancels an ongoing dialog.

ChangePIN(const TPINParams &, TBool, TPINValue &, TPINValue &, TRequestStatus &)

voidChangePIN(const TPINParams &aPINParams,
TBoolaRetry,
TPINValue &aOldPINValue,
TPINValue &aNewPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to change a PIN.

Parameters

const TPINParams & aPINParamsInformation about the PIN to change
TBool aRetryIndicates whether the user is retrying
TPINValue & aOldPINValueOn return, the old PIN the user entered
TPINValue & aNewPINValueOn return, the new PIN the user entered
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

DisablePIN(const TPINParams &, TBool, TPINValue &, TRequestStatus &)

voidDisablePIN(const TPINParams &aPINParams,
TBoolaRetry,
TPINValue &aPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to disable a PIN.

Parameters

const TPINParams & aPINParamsInformation about the PIN to disable.
TBool aRetryIndicates whether the user is retrying.
TPINValue & aPINValueOn return, the PIN the user entered:
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

EnablePIN(const TPINParams &, TBool, TPINValue &, TRequestStatus &)

voidEnablePIN(const TPINParams &aPINParams,
TBoolaRetry,
TPINValue &aPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to enable a PIN.

Parameters

const TPINParams & aPINParamsInformation about the PIN to enable.
TBool aRetryIndicates whether the user is retrying.
TPINValue & aPINValueOn return, the PIN the user entered:
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

EnterPIN(const TPINParams &, TBool, TPINValue &, TRequestStatus &)

voidEnterPIN(const TPINParams &aPINParams,
TBoolaRetry,
TPINValue &aPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to enter a PIN.

Parameters

const TPINParams & aPINParamsInformation about the PIN to enter.
TBool aRetryIndicates whether the user is retrying.
TPINValue & aPINValueOn return, the PIN the user entered:
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

EstablishSecureConnection(const TDesC8 &, const RArray< TCTTokenObjectHandle > &, MSecurityDialog::TConnectionType, TBool &, TCTTokenObjectHandle &, TRequestStatus &)

voidEstablishSecureConnection(const TDesC8 &aCertData,
const RArray< TCTTokenObjectHandle > &aCertHandleList,
MSecurityDialog::TConnectionTypeaConnectionType,
TBool &aDoClientAuthentication,
TCTTokenObjectHandle &aCertHandle,
TRequestStatus &aStatus
)[pure virtual]

Informs the user that a secure connection is being established with the given server, allowing them to proceed or cancel the operation.

Parameters

const TDesC8 & aCertDataThe certificate sent by the server.
const RArray< TCTTokenObjectHandle > & aCertHandleListA selection of certificates to display to the user. All certificates are displayed if this is empty.
MSecurityDialog::TConnectionType aConnectionTypeThis allows the type of certificate to be identified.
TBool & aDoClientAuthenticationDetermines whether the user is prompted to agree to authenticate themselves to the server. If this was true before the function was called, it will contain the result of the user's decision on return.
TCTTokenObjectHandle & aCertHandleAn identifier for the certificate the user selected.
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

PINBlocked(const TPINParams &, TRequestStatus &)

voidPINBlocked(const TPINParams &aPINParams,
TRequestStatus &aStatus
)[pure virtual]

Informs the user that the PIN has become blocked.

Parameters

const TPINParams & aPINParamsInformation about the blocked PIN.
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

Release()

voidRelease()[pure virtual]

Frees resources of the MSecurityDialog class

ServerAuthenticationFailure(const TDesC8 &, const TValidationError &, const TDesC8 &, TRequestStatus &)

voidServerAuthenticationFailure(const TDesC8 &aServerName,
const TValidationError &aFailureReason,
const TDesC8 &aEncodedCert,
TRequestStatus &aStatus
)[pure virtual]

Informs the user that the server authentication has failed.

Parameters

const TDesC8 & aServerNameThe name of the server.
const TValidationError & aFailureReason
const TDesC8 & aEncodedCert
TRequestStatus & aStatusThis will be set to KErrNone or KErrAbort depending upon the EContinue or EStop.

SignText(const TDesC &, const RArray< TCTTokenObjectHandle > &, TCTTokenObjectHandle &, TRequestStatus &)

voidSignText(const TDesC &aTextToSign,
const RArray< TCTTokenObjectHandle > &aCertHandleList,
TCTTokenObjectHandle &aCertHandle,
TRequestStatus &aStatus
)[pure virtual]

Signs some text.

Parameters

const TDesC & aTextToSignThe text to be signed.
const RArray< TCTTokenObjectHandle > & aCertHandleListA selection of certificates to display to the user. All certificates are displayed if this is empty.
TCTTokenObjectHandle & aCertHandleOn return, an identifier for the certificate the user selected. aStatus - this will be set to KErrNotFound if no certificates could be presented to the user.
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

TotalBlocked(const TPINParams &, TRequestStatus &)

voidTotalBlocked(const TPINParams &aPINParams,
TRequestStatus &aStatus
)[pure virtual]

Informs the user that the unblock PIN has been blocked.

Parameters

const TPINParams & aPINParamsInformation about the blocked PIN.
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

UnblockPIN(const TPINParams &, const TPINParams &, TBool, TPINValue &, TPINValue &, TRequestStatus &)

voidUnblockPIN(const TPINParams &aBlockedPINParams,
const TPINParams &aUnblockingPINParams,
TBoolaRetry,
TPINValue &aUnblockingPINValue,
TPINValue &aNewPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to unblock a PIN.

The unblocking PIN is not displayed as it is entered, and can be a maximum of 32 characters long - hence it is passed back as a TPINValue.

Parameters

const TPINParams & aBlockedPINParamsInformation about the PIN to unblock
const TPINParams & aUnblockingPINParamsInformation about the unblocking PIN
TBool aRetryIndicates whether the user is retrying
TPINValue & aUnblockingPINValueOn return, the PIN the user entered
TPINValue & aNewPINValueOn return, the new PIN the user entered
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

UnblockPINInClear(const TPINParams &, const TPINParams &, TBool, TUnblockPINValue &, TPINValue &, TRequestStatus &)

voidUnblockPINInClear(const TPINParams &aBlockedPINParams,
const TPINParams &aUnblockingPINParams,
TBoolaRetry,
TUnblockPINValue &aUnblockingPINValue,
TPINValue &aNewPINValue,
TRequestStatus &aStatus
)[pure virtual]

Prompts the user to unblock a PIN.

The unblocking PIN is displayed to the user in the clear as it is entered, and can be a maximum of 64 characters long - it is passed back as a TUnblockPINValue.

Parameters

const TPINParams & aBlockedPINParamsInformation about the PIN to unblock
const TPINParams & aUnblockingPINParamsInformation about the unblocking PIN
TBool aRetryIndicates whether the user is retrying
TUnblockPINValue & aUnblockingPINValueOn return, the PIN the user entered
TPINValue & aNewPINValueOn return, the new PIN the user entered
TRequestStatus & aStatusThis will be set to KErrNotFound if no certificates could be presented to the user.

Member Enumerations Documentation

Enum TConnectionType

TConnectionType defines the possible protocols used in EstablishSecureConnection which allows the type of the certificate to be derived.

Enumerators

EWTLS

WTLS

ETLS

TLS