Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Lambda arguments args NameParam defaults NameLoad Num Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Return Call AttributeLoad NameLoad attr Call NameLoad keyword NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Call NameLoad Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Str decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad Str ClassDef bases NameLoad body Assign NameStore NameLoad decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Num decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad Return Call NameLoad ListLoad NameLoad Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Call NameLoad Assign NameStore Call NameLoad decorator_list Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad Call AttributeLoad SubscriptLoad NameLoad Index Str attr attr NameLoad decorator_list decorator_list
N/A N/A 
Tests for I{AMP} commands related to identity.
 twisted.trial unittest twisted.protocols amp twisted.internet.defer succeed twisted.internet.ssl DN KeyPair CertificateRequest vertex.ivertex IQ2QUser vertex.q2q Q2Q Q2QAddress Identify Sign vertex.test.amphelpers callResponder makeCert N/A N/A cn N/A N/A N/A 
    Create a self-signed certificate with the given common name.

    @param cn: Common Name to use in certificate.
    @type cn: L{bytes}

    @return: Self-signed certificate.
    @rtype: L{Certificate<twisted.internet.ssl.Certificate>}
     N/A sharedDN N/A DN CN cn N/A key N/A N/A KeyPair generate N/A cr N/A N/A key certificateRequest sharedDN N/A sscrd N/A N/A key signCertificateRequest sharedDN cr N/A N/A N/A dn N/A True 1 N/A N/A N/A key newCertificate sscrd N/A makeCertRequest N/A N/A cn N/A N/A N/A 
    Create a certificate request with the given common name.

    @param cn: Common Name to use in certificate request.
    @type cn: L{bytes}

    @return: Certificate request.
    @rtype: L{CertificateRequest}
     N/A key N/A N/A KeyPair generate N/A N/A N/A key certificateRequest N/A DN CN cn N/A IdentityTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{Identify}.
     test_identify N/A N/A self N/A N/A N/A 
        A presence server responds to Identify messages with the cert
        stored for the requested domain.
         N/A target example.com N/A fakeCert N/A makeCert fake certificate FakeStorage N/A object N/A getPrivateCertificate N/A N/A cs subject N/A N/A N/A N/A N/A self assertEqual subject target N/A fakeCert N/A N/A FakeService N/A object N/A N/A certificateStorage N/A FakeStorage N/A N/A q N/A Q2Q N/A N/A q service N/A FakeService N/A d N/A callResponder q Identify subject N/A Q2QAddress target N/A response N/A N/A self successResultOf d N/A N/A N/A self assertEqual response N/A certificate fakeCert N/A N/A N/A self assertFalse N/A hasattr N/A response N/A certificate privateKey N/A N/A SignTests N/A N/A unittest TestCase N/A N/A 
    Tests for L{Sign}.
     test_cannotSign N/A N/A self N/A N/A N/A 
        Vertex nodes with no portal will not sign cert requests.
         N/A cr N/A N/A CertificateRequest load N/A makeCertRequest example.com FakeService N/A object N/A N/A portal None N/A N/A q N/A Q2Q N/A N/A q service N/A FakeService N/A d N/A callResponder q Sign certificate_request cr password hunter2 N/A N/A N/A self failureResultOf d N/A amp RemoteAmpError N/A test_sign N/A N/A self N/A N/A N/A 
        'Sign' messages with a cert request result in a cred login with
        the given password. The avatar returned is then asked to sign
        the cert request with the presence server's certificate. The
        resulting certificate is returned as a response.
         N/A user jethro@example.com N/A passwd hunter2 N/A issuerName fake certificate N/A domainCert N/A makeCert issuerName FakeAvatar N/A object N/A signCertificateRequest N/A N/A fa certificateRequest hostcert suggestedSerial N/A N/A N/A N/A N/A self assertEqual hostcert domainCert N/A N/A N/A hostcert signRequestObject certificateRequest suggestedSerial N/A N/A FakeStorage N/A object N/A getPrivateCertificate N/A N/A cs subject N/A N/A N/A domainCert N/A genSerial N/A N/A cs domain N/A N/A N/A 1 N/A N/A N/A cr N/A N/A CertificateRequest load N/A makeCertRequest user FakePortal N/A object N/A login N/A N/A fp creds proto iface N/A N/A N/A N/A N/A self assertEqual iface IQ2QUser N/A N/A N/A self assertEqual N/A creds username user N/A N/A N/A self assertEqual N/A creds password passwd N/A N/A succeed N/A None N/A FakeAvatar None N/A N/A FakeService N/A object N/A N/A portal N/A FakePortal N/A certificateStorage N/A FakeStorage N/A N/A q N/A Q2Q N/A N/A q service N/A FakeService N/A d N/A callResponder q Sign certificate_request cr password passwd N/A response N/A N/A self successResultOf d N/A N/A N/A self assertEqual N/A N/A N/A N/A response N/A certificate getIssuer commonName issuerName N/A N/A