|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.server.plugins.rhnhosted.certificate.Certificate
public class Certificate
A rhq server certificate.
| Field Summary | |
|---|---|
static String |
CURRENT_GENERATION
|
| Method Summary | |
|---|---|
void |
addChannelFamily(ChannelFamilyDescriptor family)
Add a channel family |
String |
asChecksumString()
Convert this certificate into the canonical form used for signing. |
String |
asXmlString()
Returns the XML representation of the cert. |
List |
getChannelFamilies()
Return an unmodifiable list of the channel families |
ChannelFamilyDescriptor |
getChannelFamily(String family)
Return the channel family with name family, or
null if no such family exists. |
String |
getExpires()
Get the expiration date |
Date |
getExpiresDate()
Convenience function, returns java.util.Date equivalent of expires |
String |
getGeneration()
Get the generation |
String |
getIssued()
Get the issue date |
String |
getMonitoringSlots()
Get the monitoring slots |
String |
getNonlinuxSlots()
Get the nonlinux slots |
String |
getOwner()
Get the owner |
String |
getProduct()
Get the product |
String |
getProvisioningSlots()
Get the number of provisioning slots |
String |
getSatelliteVersion()
Get the satellite version |
String |
getSignature()
Get the ASCII armoured signature |
String |
getSlots()
Get the number of slots |
String |
getVirtualizationPlatformSlots()
Get the number of virtualization platform slots |
String |
getVirtualizationSlots()
Get the number of virtualization slots |
boolean |
isExpired()
States whether or not this certificate is expired. |
void |
setExpires(String expires0)
Set the expiration date for the certificate |
void |
setGeneration(String generation0)
Set the generation |
void |
setIssued(String issued0)
Set the date of issue |
void |
setMonitoringSlots(String monitoringSlots0)
Set the number of monitoring slots |
void |
setNonlinuxSlots(String nonlinuxSlots0)
Set the number of non-linux slots |
void |
setOwner(String owner0)
Set the owner |
void |
setProduct(String product0)
Set the product |
void |
setProvisioningSlots(String provisioningSlots0)
Set the number of provisioning slots |
void |
setSatelliteVersion(String satelliteVersion0)
Set the satellite version |
void |
setSignature(String signature0)
Set the signature as an ASCII armored string |
void |
setSlots(String slots0)
Set the number of slots |
void |
setVirtualizationPlatformSlots(String virtualizationSlots0)
Set the number of virtualization platform slots |
void |
setVirtualizationSlots(String virtualizationSlots0)
Set the number of virtualization slots |
boolean |
verifySignature(PublicKeyRing keyRing)
Check that this certificate was signed with a private key whose public counterpart is on keyRing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CURRENT_GENERATION
| Method Detail |
|---|
public boolean isExpired()
throws ParseException
expires is after current system time
ParseException - this shouldn't happen, means the date format in
the cert is not what we expectpublic String asChecksumString()
public String asXmlString()
public boolean verifySignature(PublicKeyRing keyRing)
throws SignatureException
keyRing
keyRing - the public keys with which to check the signatures
true if this certificate was signed with a private
key whose public counterpart is on keyRing,
false otherwise
SignatureException - if processing the sigature failspublic void addChannelFamily(ChannelFamilyDescriptor family)
family - the channel family to addpublic void setExpires(String expires0)
expires0 - the expiration datepublic void setGeneration(String generation0)
generation0 - the generationpublic void setIssued(String issued0)
issued0 - date of issuepublic void setNonlinuxSlots(String nonlinuxSlots0)
nonlinuxSlots0 - the number of non-linux slotspublic void setMonitoringSlots(String monitoringSlots0)
monitoringSlots0 - the number of monitoring slotspublic void setOwner(String owner0)
owner0 - the ownerpublic void setProduct(String product0)
product0 - the productpublic void setProvisioningSlots(String provisioningSlots0)
provisioningSlots0 - the number of provisioning slotspublic void setSatelliteVersion(String satelliteVersion0)
satelliteVersion0 - the satellite versionpublic void setSignature(String signature0)
signature0 - the ASCII armored signaturepublic void setSlots(String slots0)
slots0 - the number of slotspublic void setVirtualizationSlots(String virtualizationSlots0)
virtualizationSlots0 - the number of virtualization slotspublic void setVirtualizationPlatformSlots(String virtualizationSlots0)
virtualizationSlots0 - the number of virtualization platform slotspublic List getChannelFamilies()
public ChannelFamilyDescriptor getChannelFamily(String family)
family, or
null if no such family exists.
family - the name of the family
family, or
null if no such family exists.public String getExpires()
public Date getExpiresDate()
throws ParseException
expires
expires
ParseException - format of expires not what we
expectedpublic String getGeneration()
public String getIssued()
public String getNonlinuxSlots()
public String getMonitoringSlots()
public String getOwner()
public String getProduct()
public String getProvisioningSlots()
public String getSatelliteVersion()
public String getSignature()
public String getSlots()
public String getVirtualizationSlots()
public String getVirtualizationPlatformSlots()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||