Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/subscription_manager/cp_provider.pyc
mò x^Sc @ s3 d k l Z d k i Z d e f d „ ƒ YZ d S( ( s ConsumerIdentityNt CPProviderc B s€ t Z d Z e Z e Z e Z d „ Z e e e e e e e e e d „ Z e e d „ Z d „ Z d „ Z d „ Z d „ Z RS( sÒ CPProvider provides candlepin connections of varying authentication levels in order to avoid creating more than we need, and reuse the ones we have. Please try not to hold a self.cp or self.uep, instead the instance of CPProvider and use get_X_auth_cp() when a connection is needed. consumer_auth_cp: authenticates with consumer cert/key basic_auth_cp: also called admin_auth uses a username/password no_auth_cp: no authentication c C s | i ƒ d S( N( t selft set_connection_info( R ( ( t3 /usr/share/rhsm/subscription_manager/cp_provider.pyt __init__% s c C sk t i ƒ | _ t i ƒ | _ | | _ | | _ | | _ | | _ | | _ | | _ | | _ | i ƒ d S( N( t ConsumerIdentityt certpathR t cert_filet keypatht key_filet hostt server_hostnamet ssl_portt server_portt handlert server_prefixt proxy_hostname_argt proxy_hostnamet proxy_port_argt proxy_portt proxy_user_argt proxy_usert proxy_password_argt proxy_passwordt clean( R R R R R R R R R R ( ( R R * s c C s | | _ | | _ d | _ d S( N( t usernameR t passwordt Nonet basic_auth_cp( R R R ( ( R t set_user_passE s c C s d | _ d | _ d | _ d S( N( R R t consumer_auth_cpR t no_auth_cp( R ( ( R R K s c C su | i pd t i d | i d | i d | i d | i d | i d | i d | i d | i d | i ƒ | _ n | i S( NR R R R R R R R R ( R R t connectiont UEPConnectionR R R R R R R R R ( R ( ( R t get_consumer_auth_cpP s c C su | i pd t i d | i d | i d | i d | i d | i d | i d | i d | i d | i ƒ | _ n | i S( NR R R R R R R R R ( R R R R! R R R R R R R R R ( R ( ( R t get_basic_auth_cp] s c C sc | i pR t i d | i d | i d | i d | i d | i d | i d | i ƒ | _ n | i S( NR R R R R R R ( R R R R! R R R R R R R ( R ( ( R t get_no_auth_cpk s ( t __name__t __module__t __doc__R R R R R R R R R"