blob: 50d151ac83b37660ee351a50047ccad9f6462cc8 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Foundation/Foundation.h>
#import "ios/chrome/common/ui/reauthentication/reauthentication_protocol.h"
// A help article on how to set up a passcode.
extern const char kPasscodeArticleURL[];
@protocol SuccessfulReauthTimeAccessor <NSObject>
// Method meant to be called by the |ReauthenticationModule| to update
// the time of the last successful re-authentication.
- (void)updateSuccessfulReauthTime;
// Returns the time of the last successful re-authentication.
- (NSDate*)lastSuccessfulReauthTime;
* This is used by |PasswordsDetailsCollectionViewController| and
* |PasswordExporter|to re-authenticate the user before displaying the password
* in plain text, allowing it to be copied, or exporting passwords.
* TODO( Convert reauthentication module to model object
* (keyed service or browser agent).
@interface ReauthenticationModule : NSObject <ReauthenticationProtocol>
// The designated initializer. |successfulReauthTimeAccessor| must not be nil.
// Use |init| to have ReauthenticationModule be it's own
// |SuccessfulReauthTimeAccessor|.
- (instancetype)initWithSuccessfulReauthTimeAccessor: