diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2016-03-26 23:50:48 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2016-03-28 17:33:17 +0200 |
commit | 0c57335d533cbaa7e331ab3d7e876a22710890bb (patch) | |
tree | 1178aae7a0c1c2406cdca653efae1dbb9be7376b | |
parent | b4a6c720cb202f44b07ad2d0f9d8812ab7212ea5 (diff) |
Document may_use() policy function
-rw-r--r-- | docs/policy.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/policy.rst b/docs/policy.rst index 97f9250..cad018f 100644 --- a/docs/policy.rst +++ b/docs/policy.rst @@ -92,11 +92,11 @@ The Policy class value is ``True`` to ensure that the lack of understanding of certain extensions does not lead to unintended key usage. - .. function:: may_use(usage) - - Check whether the key may be used for the provided purpose. See - :ref:`key-use-constants` below. + .. function:: may_use(usage=None, now=None) + Check whether the key may be used for the provided purpose. The key + :attr:`start_date` and :attr:`expiry_date` are also checked. The `now` + argument can be used to specify another point in time to check against. .. _key-use-constants: |