|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanon.crypto.CertificateContainer
public class CertificateContainer
This class stores additional settings for every certificate stored within a CertificateStore. Any instance of this class should be visible only within the parent CertificateStore it belongs to.
Field Summary | |
---|---|
private boolean |
m_bNotRemovable
This certifcate is NOT removable - used at the moment for some default certs |
private boolean |
m_certificateNeedsVerification
Stores, whether this certificate needs verification by a parent certificate in order to get activated within the certificate store. |
private int |
m_certificateType
Stores the certificate type of this certificate. |
private CertPath |
m_certPath
|
private boolean |
m_enabled
Stores, whether this certificate is enabled within the certificate store. |
private java.util.Vector |
m_lockList
Stores all locks on this certificate. |
private boolean |
m_onlyHardRemovable
Stores, whether the certificate can only be removed from the certificate store by calling the removeCertificate() method. |
private JAPCertificate |
m_parentCertificate
Stores the parent certificate (the certificate against which verification of this certificate was successful) of this certificate. |
private static java.lang.String |
XML_ATTR_REMOVABLE
|
static java.lang.String |
XML_ELEMENT_NAME
Stores the name of the root node of the XML settings for this class. |
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
CertificateContainer(CertPath a_certPath,
int a_certificateType,
boolean a_certificateNeedsVerification)
Creates a new instance of CertificateContainer. |
|
CertificateContainer(org.w3c.dom.Element a_certificateContainerNode)
Creates a new instance of CertificateContainer. |
Method Summary | |
---|---|
void |
enableNotRemovable()
This certifcate is not removeable - this is a workaround for default certificates |
void |
enableOnlyHardRemovable()
Disables the possibility of removing the certificate automatically from the certificate store. |
boolean |
equals(java.lang.Object a_certificateContainer)
Note: Only checks if the certificate in the container is the same |
JAPCertificate |
getCertificate()
Returns the corresponding certificate for this CertificateContainer. |
boolean |
getCertificateNeedsVerification()
Returns, whether this certificate needs verification by a parent certificate in order to get activated within the certificate store. |
int |
getCertificateType()
Returns the certificate type of this certificate. |
CertPath |
getCertPath()
|
java.lang.String |
getId()
Returns a unique id for this CertificateContainer. |
CertificateInfoStructure |
getInfoStructure()
Creates an information structure with the settings stored within this certificate container. |
java.util.Vector |
getLockList()
Returns the list with all locks on this certificate. |
JAPCertificate |
getParentCertificate()
Returns the parent certificate (the certificate against which verification of this certificate was successful) of this certificate. |
int |
hashCode()
The hash code is derived from the certificate`s id. |
boolean |
isAvailable()
Returns whether this certificate is activated within the certificate store. |
boolean |
isEnabled()
Stores, whether this certificate is enabled within the certificate store. |
boolean |
isNotRemovable()
|
boolean |
isOnlyHardRemovable()
Returns, whether the certificate can only be removed from the certificate store by calling the removeCertificate() method. |
void |
setEnabled(boolean a_enabled)
Changes the value which stores, whether this certificate is enabled within the certificate store. |
void |
setParentCertificate(JAPCertificate a_parentCertificate)
Changes the parent certificate (the certificate against which verification of this certificate was successful) of this certificate. |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Creates an XML node with most of the settings stored within this certificate container. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String XML_ELEMENT_NAME
private static final java.lang.String XML_ATTR_REMOVABLE
private JAPCertificate m_parentCertificate
private CertPath m_certPath
private int m_certificateType
private boolean m_enabled
private boolean m_certificateNeedsVerification
private boolean m_onlyHardRemovable
private boolean m_bNotRemovable
private java.util.Vector m_lockList
Constructor Detail |
---|
public CertificateContainer(CertPath a_certPath, int a_certificateType, boolean a_certificateNeedsVerification)
a_certificate
- The certificate for which the container is built.a_certificateType
- The type of the certificate.a_certificateNeedsVerification
- Whether this certificate is only valid within the
certificate store, if it can be verified against an
active root certificate from the store.public CertificateContainer(org.w3c.dom.Element a_certificateContainerNode) throws java.lang.Exception
a_certificateContainerNode
- The XML node to load the settings from
('CertificateContainer' node). Such a node can be created
by calling toXmlElement().
java.lang.Exception
Method Detail |
---|
public JAPCertificate getCertificate()
public CertPath getCertPath()
public void setParentCertificate(JAPCertificate a_parentCertificate)
a_parentCertificate
- The parent certificate of this certificate (maybe null).public JAPCertificate getParentCertificate()
public int getCertificateType()
public boolean getCertificateNeedsVerification()
public boolean isAvailable()
public boolean isEnabled()
public void setEnabled(boolean a_enabled)
a_enabled
- Whether this certificate shall be enabled within the certificate store.public void enableOnlyHardRemovable()
public boolean isOnlyHardRemovable()
public void enableNotRemovable()
public boolean isNotRemovable()
public java.util.Vector getLockList()
public CertificateInfoStructure getInfoStructure()
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
toXmlElement
in interface IXMLEncodable
a_doc
- The XML document, which is the environment for the created XML node.
public boolean equals(java.lang.Object a_certificateContainer)
equals
in class java.lang.Object
JAPCertificate.equals()
public java.lang.String getId()
JAPCertificate.getId()
public int hashCode()
hashCode
in class java.lang.Object
JAPCertificate.hashCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |