Package pulp :: Package server :: Package auth :: Module certificate :: Class EntitlementCertificate
[hide private]
[frames] | no frames]

Class EntitlementCertificate

source code

   object --+            
            |            
  Certificate --+        
                |        
RedhatCertificate --+    
                    |    
   ProductCertificate --+
                        |
                       EntitlementCertificate

Represents an entitlement certificate.

Instance Methods [hide private]
Order
getOrder(self)
Get the order object defined in the certificate.
source code
[Entitlement,..]
getEntitlements(self)
Get the all entitlements defined in the certificate.
source code
[Content,..]
getContentEntitlements(self)
Get the content entitlements defined in the certificate.
source code
[Role,..]
getRoleEntitlements(self)
Get the role entitlements defined in the certificate.
source code
list
bogus(self)
Get whether the certificate contains bogus data or is otherwise unsuitable.
source code
 
__str__(self)
str(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

    Inherited from ProductCertificate
Product
getProduct(self)
Get the product defined in the certificate.
source code
[Product,..]
getProducts(self)
Get a list products defined in the certificate.
source code
    Inherited from RedhatCertificate
Extension
redhat(self)
Get the extension subtree for the redhat namespace.
source code
 
update(self, content) source code
    Inherited from Certificate
 
__cmp__(self, other) source code
 
__init__(self, content=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
delete(self)
Delete the file associated with this certificate.
source code
Extensions
extensions(self)
Get custom extensions.
source code
Certificate
read(self, path)
Read a certificate file.
source code
str
serialNumber(self)
Get the serial number
source code
dict
subject(self)
Get the certificate subject.
source code
str
toPEM(self)
Get PEM representation of the certificate.
source code
boolean
valid(self)
Get whether the certificate is valid based on date.
source code
DateRange
validRange(self)
Get the valid date range.
source code
 
write(self, path)
Write the certificate.
source code
Class Variables [hide private]
    Inherited from RedhatCertificate
str REDHAT = '1.3.6.1.4.1.2312.9'
The Red Hat base OID.
Instance Variables [hide private]
    Inherited from Certificate
X509 x509
The M2Crypto.X509 backing object.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getOrder(self)

source code 

Get the order object defined in the certificate.

Returns: Order
An order object.

getEntitlements(self)

source code 

Get the all entitlements defined in the certificate.

Returns: [Entitlement,..]
A list of entitlement object.

getContentEntitlements(self)

source code 

Get the content entitlements defined in the certificate.

Returns: [Content,..]
A list of entitlement object.

getRoleEntitlements(self)

source code 

Get the role entitlements defined in the certificate.

Returns: [Role,..]
A list of entitlement object.

bogus(self)

source code 

Get whether the certificate contains bogus data or is otherwise unsuitable. The certificate may be valid but still be considered bogus.

Returns: list
List of reasons if bogus
Overrides: Certificate.bogus
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)