MCTAuthenticationObject Class Reference

class MCTAuthenticationObject : public MCTTokenObject

This class allows authentication objects to be queried and manipulated.

Authentication objects are obtained from the MCTAuthenticationObjectList class, which is the class returned as the token interface.

Inherits from

Constructor & Destructor Documentation

MCTAuthenticationObject(MCTToken &)

MCTAuthenticationObject(MCTToken &aToken)[inline]

Constructor

Parameters

MCTToken & aToken

Member Functions Documentation

CancelChangeReferenceData()

voidCancelChangeReferenceData()[pure virtual]

Cancels an asynchronous ChangeReferenceData() operation.

CancelClose()

voidCancelClose()[inline, virtual]

Cancels an asynchronous Close() operation.

CancelDisable()

voidCancelDisable()[pure virtual]

Cancels an asynchronous Disable() operation.

CancelEnable()

voidCancelEnable()[pure virtual]

Cancels an asynchronous Enable() operation.

CancelListProtectedObjects()

voidCancelListProtectedObjects()[pure virtual]

Cancels an asynchronous ListProtectedObjects() operation.

CancelOpen()

voidCancelOpen()[inline, virtual]

Cancels an asynchronous Open() operation.

CancelSetTimeout()

voidCancelSetTimeout()[inline, virtual]

Cancels an asynchronous SetTimeout() operation.

CancelTimeRemaining()

voidCancelTimeRemaining()[inline, virtual]

Cancels an asynchronous TimeRemaining() operation.

CancelTimeout()

voidCancelTimeout()[inline, virtual]

Cancels an asynchronous Timeout() operation.

CancelUnblock()

voidCancelUnblock()[pure virtual]

Cancels an asynchronous Unblock() operation.

ChangeReferenceData(TRequestStatus &)

voidChangeReferenceData(TRequestStatus &aStatus)[pure virtual]

Changes the reference data (e.g. PIN value).

The security dialog component will prompt for the old and new reference data.

The authentication object may not allow its reference data to be changed - this is indicated by the EChangeDisabled bit of Status() being set.

leave
KErrNotFound If no reference data was originally set.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.

Close(TRequestStatus &)

voidClose(TRequestStatus &aStatus)[pure virtual]

Closes an authentication object.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.

Disable(TRequestStatus &)

voidDisable(TRequestStatus &aStatus)[pure virtual]

Disables the authentication object.

It is only valid to call this method if the object is enabled, indicated by the EEnabled bit of Status() being set.

Also, the authentication object may not support being enabled/disabled - the EDisableAllowed bit of Status() must be set for this to work.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.

Enable(TRequestStatus &)

voidEnable(TRequestStatus &aStatus)[pure virtual]

Enables the authentication object.

It is only valid to call this method if the object is disabled, indicated by the EEnabled bit of Status() being clear.

Also, the authentication object may not support being enabled/disabled - the EDisableAllowed bit of Status() must be set for this to work.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.

ListProtectedObjects(RMPointerArray< MCTTokenObject > &, TRequestStatus &)

voidListProtectedObjects(RMPointerArray< MCTTokenObject > &aObjects,
TRequestStatus &aStatus
)[pure virtual]

Gets a list of all the objects that this authentication object protects.

Parameters

RMPointerArray< MCTTokenObject > & aObjectsThe returned objects will be appended to this array.
TRequestStatus & aStatusCompleted with the return code when the operation completes.

Open(TRequestStatus &)

voidOpen(TRequestStatus &aStatus)[pure virtual]

Opens the authentication object.

This means that the protected objects can be accessed without provoking the authentication mechanism for the duration of the timeout period.

Note that it is not strictly necessary to call this function, as the authentication object will be opened when any operation that needs it to be opened is called, but it is sometimes useful to control the timing of authentication dialogs. Note also that this function will do nothing if the authentication object is open, or if the authentication object requires the authentication data to be entered every time.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.

SetTimeout(TInt, TRequestStatus &)

voidSetTimeout(TIntaTime,
TRequestStatus &aStatus
)[pure virtual]

Sets the time in seconds for this authentication object.

Permitted values include 0, meaning always ask, and -1, meaning until it's explicitly closed. Particular authentication objects might restrict the range of values permitted.

leave
KErrArgument If the timeout specified is invalid.

Parameters

TInt aTimeTime in seconds
TRequestStatus & aStatusCompleted with the return code when the operation completes

Status()

TUint32 Status()const [pure virtual]

Gets the status of the authentication object.

TimeRemaining(TInt &, TRequestStatus &)

voidTimeRemaining(TInt &aStime,
TRequestStatus &aStatus
)[pure virtual]

Gets the amount of time in seconds that the authentication object will remain open for, or 0 if it is closed.

Parameters

TInt & aStimeTime in seconds when the operation completes.
TRequestStatus & aStatusCompleted with the return code when the operation completes.

Timeout(TInt &, TRequestStatus &)

voidTimeout(TInt &aTime,
TRequestStatus &aStatus
)[pure virtual]

Gets the current timeout value, in seconds.

For an explanation of the values, see SetTimeout().

Parameters

TInt & aTimeTime in seconds.
TRequestStatus & aStatusCompleted with the return code when the operation completes.

Unblock(TRequestStatus &)

voidUnblock(TRequestStatus &aStatus)[pure virtual]

Unblocks the authentication object.

The security dialog component will prompt for the unblocking authentication object.

It is only valid to call this method when the authentication object is blocked, ie when the EAuthObjectBlocked bit of Status() is set.

The object may not allow unblocking (either because of failed unblock attempts or because it doesn't support the concept) - this is indicated by the EUnblockDisabled bit of Status() being set.

Parameters

TRequestStatus & aStatusCompleted with the return code when the operation completes.