1
# Copyright (c) 2008 Divmod. See LICENSE for details.
6
from zope.interface import Attribute
8
from twisted.cred.credentials import ICredentials
11
class IOneTimePad(ICredentials):
13
A type of opaque credential for authenticating users, which can be used
16
This interface should also be responsible for authenticating. See #2784.
20
C{str} giving the value of the one-time pad. The value will be
21
compared by a L{twisted.cred.checkers.ICredentialsChecker} (e.g.
22
L{epsilon.ampauth.OneTimePadChecker}) against all valid one-time pads.
23
If there is a match, login will be successful and the pad will be
24
invalidated (further attempts to use it will fail).