public class CertificateContainer extends java.lang.Object implements IXMLEncodable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_ELEMENT_NAME
Stores the name of the root node of the XML settings for this class.
|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final java.lang.String XML_ELEMENT_NAME
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
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()
Copyright © 2023. All rights reserved.