adTempus API
ArcanaDevelopment.adTempus.Client Namespace / CredentialProfile Class / VerifyPassword Method
The password to try
If true the caller is automatically granted permission to use the profile if the password check succeeds.


In This Topic
    VerifyPassword Method
    In This Topic
    Tests to see if a value is the correct password for the profile
    Syntax
    'Declaration
     
    
    <PureAttribute()>
    Public Function VerifyPassword( _
       ByVal passwordToTest As String, _
       ByVal addPermission As Boolean _
    ) As Boolean
    [Pure()]
    public bool VerifyPassword( 
       string passwordToTest,
       bool addPermission
    )
    [Pure()]
    public:
    bool VerifyPassword( 
       String^ passwordToTest,
       bool addPermission
    ) 

    Parameters

    passwordToTest
    The password to try
    addPermission
    If true the caller is automatically granted permission to use the profile if the password check succeeds.

    Return Value

    true if the passwordToTest is the correct password for the profile.
    Remarks
    This method is used to allow a user to automatically gain permission to use the Credential Profile if they know the password for the account. Call with addPermission set to true and the user is automatically granted ArcanaDevelopment.adTempus.Shared.SecurityPermission.Use permission for the profile if the passwordToTest is correct. This allows users to get permission to use profiles without an administrator having to explicitly grant access.
    See Also