JanRain : openid.extensions.draft.pape5 : first look

hdknr@LennyOne:~$ python
Python 2.5.2 (r252:60911, Jan  4 2009, 17:40:26)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from openid.extensions.draft import pape5 as pape
>>> for x in dir(pape):
…   print "pape.%s"%x, eval(‘type(pape.%s)’%x), eval(‘pape.%s’%x)

pape.AUTH_MULTI_FACTOR <type ‘str’> http://schemas.openid.net/pape/policies/2007/06/multi-factor
pape.AUTH_MULTI_FACTOR_PHYSICAL <type ‘str’> http://schemas.openid.net/pape/policies/2007/06/multi-factor-physical
pape.AUTH_NONE <type ‘str’> http://schemas.openid.net/pape/policies/2007/06/none
pape.AUTH_PHISHING_RESISTANT <type ‘str’> http://schemas.openid.net/pape/policies/2007/06/phishing-resistant
pape.Extension <type ‘type’> <class ‘openid.extension.Extension’>
pape.LEVELS_JISA <type ‘str’> http://www.jisa.or.jp/spec/auth_level.html
pape.LEVELS_NIST <type ‘str’> http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf
pape.PAPEExtension <type ‘type’> <class ‘openid.extensions.draft.pape5.PAPEExtension’>
pape.Request <type ‘type’> <class ‘openid.extensions.draft.pape5.Request’>
pape.Response <type ‘type’> <class ‘openid.extensions.draft.pape5.Response’>
pape.TIME_VALIDATOR <type ‘_sre.SRE_Pattern’> <_sre.SRE_Pattern object at 0x9445ee0>
pape.__all__ <type ‘list’> [‘Request’, ‘Response’, ‘ns_uri’, ‘AUTH_PHISHING_RESISTANT’, ‘AUTH_MULTI_FACTOR’, ‘AUTH_MULTI_FACTOR_PHYSICAL’, ‘LEVELS_NIST’, ‘LEVELS_JISA’]
pape.__builtins__ <type ‘dict’> {’IndexError’: <type ‘exceptions.IndexError’>, ‘all’: <built-in function all>,…}
pape.__file__ <type ‘str’> /usr/lib/python2.5/site-packages/openid/extensions/draft/pape5.pyc
pape.__name__ <type ‘str’> openid.extensions.draft.pape5
pape.ns_uri <type ‘str’> http://specs.openid.net/extensions/pape/1.0
pape.re <type ‘module’> <module ‘re’ from ‘/usr/lib/python2.5/re.pyc’>
pape.warnings <type ‘module’> <module ‘warnings’ from ‘/usr/lib/python2.5/warnings.pyc’>

>>> req=pape.Request()
>>> for x in dir(req):
…   print "req.%s"%x, eval(‘type(req.%s)’%x), eval(‘req.%s’%x)

req.__class__ <type ‘type’> <class ‘openid.extensions.draft.pape5.Request’>
req.__delattr__ <type ‘method-wrapper’> <method-wrapper ‘__delattr__’ of Request object at 0xb7655ecc>
req.__dict__ <type ‘dict’> {’preferred_auth_level_types’: [], ‘preferred_auth_policies’: [], ‘auth_level_aliases’: {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}, ‘max_auth_age’: None}
req.__doc__ <type ‘str’> A Provider Authentication Policy request, sent from a relying
    party to a provider

    @ivar preferred_auth_policies: The authentication policies that
        the relying party prefers
    @type preferred_auth_policies: [str]

    @ivar max_auth_age: The maximum time, in seconds, that the relying
        party wants to allow to have elapsed before the user must
        re-authenticate
    @type max_auth_age: int or NoneType

    @ivar preferred_auth_level_types: Ordered list of authentication
        level namespace URIs

    @type preferred_auth_level_types: [str]

req.__getattribute__ <type ‘method-wrapper’> <method-wrapper ‘__getattribute__’ of Request object at 0xb7655ecc>
req.__hash__ <type ‘method-wrapper’> <method-wrapper ‘__hash__’ of Request object at 0xb7655ecc>
req.__init__ <type ‘instancemethod’> <bound method Request.__init__ of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.__module__ <type ‘str’> openid.extensions.draft.pape5
req.__new__ <type ‘builtin_function_or_method’> <built-in method __new__ of type object at 0x814e540>
req.__nonzero__ <type ‘instancemethod’> <bound method Request.__nonzero__ of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.__reduce__ <type ‘builtin_function_or_method’> <built-in method __reduce__ of Request object at 0xb7655ecc>
req.__reduce_ex__ <type ‘builtin_function_or_method’> <built-in method __reduce_ex__ of Request object at 0xb7655ecc>
req.__repr__ <type ‘method-wrapper’> <method-wrapper ‘__repr__’ of Request object at 0xb7655ecc>
req.__setattr__ <type ‘method-wrapper’> <method-wrapper ‘__setattr__’ of Request object at 0xb7655ecc>
req.__str__ <type ‘method-wrapper’> <method-wrapper ‘__str__’ of Request object at 0xb7655ecc>
req.__weakref__ <type ‘NoneType’> None
req._addAuthLevelAlias <type ‘instancemethod’> <bound method Request._addAuthLevelAlias of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req._default_auth_level_aliases <type ‘dict’> {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}
req._generateAlias <type ‘instancemethod’> <bound method Request._generateAlias of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req._getAlias <type ‘instancemethod’> <bound method Request._getAlias of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.addAuthLevel <type ‘instancemethod’> <bound method Request.addAuthLevel of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.addPolicyURI <type ‘instancemethod’> <bound method Request.addPolicyURI of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.auth_level_aliases <type ‘dict’> {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}
req.fromOpenIDRequest <type ‘instancemethod’> <bound method type.fromOpenIDRequest of <class ‘openid.extensions.draft.pape5.Request’>>
req.getExtensionArgs <type ‘instancemethod’> <bound method Request.getExtensionArgs of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.max_auth_age <type ‘NoneType’> None
req.ns_alias <type ‘str’> pape
req.ns_uri <type ‘str’> http://specs.openid.net/extensions/pape/1.0
req.parseExtensionArgs <type ‘instancemethod’> <bound method Request.parseExtensionArgs of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.preferredTypes <type ‘instancemethod’> <bound method Request.preferredTypes of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>
req.preferred_auth_level_types <type ‘list’> []
req.preferred_auth_policies <type ‘list’> []
req.toMessage <type ‘instancemethod’> <bound method Request.toMessage of <openid.extensions.draft.pape5.Request object at 0xb7655ecc>>

>>> res=pape.Response()
>>> for x in dir(res):
…   print "res.%s"%x, eval(‘type(res.%s)’%x), eval(‘res.%s’%x)

res.__class__ <type ‘type’> <class ‘openid.extensions.draft.pape5.Response’>
res.__delattr__ <type ‘method-wrapper’> <method-wrapper ‘__delattr__’ of Response object at 0xb76571ac>
res.__dict__ <type ‘dict’> {’auth_levels’: {}, ‘auth_policies’: [], ‘auth_level_aliases’: {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}, ‘auth_time’: None}
res.__doc__ <type ‘str’> A Provider Authentication Policy response, sent from a provider
    to a relying party

    @ivar auth_policies: List of authentication policies conformed to
        by this OpenID assertion, represented as policy URIs

res.__getattribute__ <type ‘method-wrapper’> <method-wrapper ‘__getattribute__’ of Response object at 0xb76571ac>
res.__hash__ <type ‘method-wrapper’> <method-wrapper ‘__hash__’ of Response object at 0xb76571ac>
res.__init__ <type ‘instancemethod’> <bound method Response.__init__ of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.__module__ <type ‘str’> openid.extensions.draft.pape5
res.__new__ <type ‘builtin_function_or_method’> <built-in method __new__ of type object at 0x814e540>
res.__reduce__ <type ‘builtin_function_or_method’> <built-in method __reduce__ of Response object at 0xb76571ac>
res.__reduce_ex__ <type ‘builtin_function_or_method’> <built-in method __reduce_ex__ of Response object at 0xb76571ac>
res.__repr__ <type ‘method-wrapper’> <method-wrapper ‘__repr__’ of Response object at 0xb76571ac>
res.__setattr__ <type ‘method-wrapper’> <method-wrapper ‘__setattr__’ of Response object at 0xb76571ac>
res.__str__ <type ‘method-wrapper’> <method-wrapper ‘__str__’ of Response object at 0xb76571ac>
res.__weakref__ <type ‘NoneType’> None
res._addAuthLevelAlias <type ‘instancemethod’> <bound method Response._addAuthLevelAlias of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res._default_auth_level_aliases <type ‘dict’> {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}
res._generateAlias <type ‘instancemethod’> <bound method Response._generateAlias of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res._getAlias <type ‘instancemethod’> <bound method Response._getAlias of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res._getNISTAuthLevel <type ‘instancemethod’> <bound method Response._getNISTAuthLevel of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.addPolicyURI <type ‘instancemethod’> <bound method Response.addPolicyURI of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.auth_level_aliases <type ‘dict’> {’nist’: ‘http://csrc.nist.gov/publications/nistpubs/800-63/SP800-63V1_0_2.pdf’, ‘jisa’: ‘http://www.jisa.or.jp/spec/auth_level.html’}
res.auth_levels <type ‘dict’> {}
res.auth_policies <type ‘list’> []
res.auth_time <type ‘NoneType’> None
res.fromSuccessResponse <type ‘instancemethod’> <bound method type.fromSuccessResponse of <class ‘openid.extensions.draft.pape5.Response’>>
res.getAuthLevel <type ‘instancemethod’> <bound method Response.getAuthLevel of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.getExtensionArgs <type ‘instancemethod’> <bound method Response.getExtensionArgs of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.nist_auth_level <type ‘NoneType’> None
res.ns_alias <type ‘str’> pape
res.ns_uri <type ‘str’> http://specs.openid.net/extensions/pape/1.0
res.parseExtensionArgs <type ‘instancemethod’> <bound method Response.parseExtensionArgs of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.setAuthLevel <type ‘instancemethod’> <bound method Response.setAuthLevel of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>
res.toMessage <type ‘instancemethod’> <bound method Response.toMessage of <openid.extensions.draft.pape5.Response object at 0xb76571ac>>

カテゴリー: 未分類 パーマリンク

コメントを残す

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

Google+ フォト

Google+ アカウントを使ってコメントしています。 ログアウト / 変更 )

%s と連携中