Home | Trees | Indices | Help |
---|
|
Crypto-related routines for oauth2client.
|
|||
AppIdentityError |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
Identify and extract PEM keys. Determines whether the given key is in the format of PEM key, and extracts the relevant part of the key if it is. Args: raw_key_input: The contents of a private key file (either PEM or PKCS12). Returns: string, The actual key if the contents are from a PEM file, or else None. |
Make a signed JWT. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: signer: crypt.Signer, Cryptographic signer. payload: dict, Dictionary of data to convert to JSON and then sign. Returns: string, The JWT for the payload. |
Verify a JWT against public certs. See http://self-issued.info/docs/draft-jones-json-web-token.html. Args: jwt: string, A JWT. certs: dict, Dictionary where values of public keys in PEM format. audience: string, The audience, 'aud', that this JWT should contain. If None then the JWT's 'aud' parameter is not verified. Returns: dict, The deserialized JSON payload in the JWT. Raises: AppIdentityError if any checks are failed. |
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Mon Sep 29 15:21:51 2014 | http://epydoc.sourceforge.net |