~divmod-dev/divmod.org/trunk

« back to all changes in this revision

Viewing changes to Epsilon/epsilon/iepsilon.py

  • Committer: Jean-Paul Calderone
  • Date: 2014-06-29 20:33:04 UTC
  • mfrom: (2749.1.1 remove-epsilon-1325289)
  • Revision ID: exarkun@twistedmatrix.com-20140629203304-gdkmbwl1suei4m97
mergeĀ lp:~exarkun/divmod.org/remove-epsilon-1325289

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (c) 2008 Divmod.  See LICENSE for details.
2
 
 
3
 
"""
4
 
Epsilon interfaces.
5
 
"""
6
 
from zope.interface import Attribute
7
 
 
8
 
from twisted.cred.credentials import ICredentials
9
 
 
10
 
 
11
 
class IOneTimePad(ICredentials):
12
 
    """
13
 
    A type of opaque credential for authenticating users, which can be used
14
 
    only a single time.
15
 
 
16
 
    This interface should also be responsible for authenticating.  See #2784.
17
 
    """
18
 
    padValue = Attribute(
19
 
        """
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).
25
 
        """)