Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class Password

Password

Support

Supported from 5.0

Description

A collection of static functions for handling passwords.

Password handling is implemented by a concrete implementation of the CSecurityBase interface.

Defined in Password:
IsEnabled(), IsValid(), Set(), SetEnabled()

See also:


IsEnabled()

static TBool IsEnabled();

Description

Determines whether password checking is enabled.

The process is implemented by the IsEnabled() function of the CSecurityBase interface.

Return value

TBool

True, if password checking is enabled; false, if the password checking is disabled.

See also:

[Top]


SetEnabled()

static TInt SetEnabled(const TPassword& aPassword,TBool aIsEnabled);

Description

Sets the password enabled state.

The process is implemented by the SetEnabled() function of the CSecurityBase interface.

Parameters

const TPassword& aPassword

The existing password

TBool aIsEnabled

ETrue, if password checking is to be enabled. EFalse, if password checking is to be disabled.

Return value

TInt

True, if the specified password is valid and the password enabled state has been changed. False, if the specified password is not valid and the password enabled state has not been changed.

See also:

[Top]


IsValid()

static TBool IsValid(const TPassword& aPassword);

Description

Determines whether the specified password is valid.

The validation process is implemented by the PrepareL() function of the CSecurityBase interface.

Parameters

const TPassword& aPassword

The password to be validated.

Return value

TBool

True, if the password is valid; false, otherwise.

See also:

[Top]


Set()

static TInt Set(const TPassword& anOldPassword,const TPassword& aNewPassword);

Description

Changes the password.

The process is implemented by the SetL() function of the CSecurityBase interface.

Parameters

const TPassword& anOldPassword

The existing password

const TPassword& aNewPassword

The new password

Return value

TInt

True, if the existing password is valid - the new password is set. False, if the existing password is not valid - the password is not changed.

See also: