|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gui.dialog.JAPDialog gui.CertDetailsDialog
public class CertDetailsDialog
CertDetails Dialog
Description: Displays any certificates
Nested Class Summary | |
---|---|
private class |
CertDetailsDialog.CertPathListCellRenderer
|
static class |
CertDetailsDialog.CertShortInfoPanel
|
Nested classes/interfaces inherited from class gui.dialog.JAPDialog |
---|
JAPDialog.AbstractLinkedURLAdapter, JAPDialog.ILinkedInformation, JAPDialog.LinkedCheckBox, JAPDialog.LinkedHelpContext, JAPDialog.LinkedInformation, JAPDialog.LinkedInformationAdapter, JAPDialog.LinkedURLCheckBox, JAPDialog.Options |
Field Summary | |
---|---|
private java.awt.Color |
ALERT_COLOR
|
private java.awt.Font |
ALERT_FONT
|
private static java.lang.String |
CERT_INVALID_INACTIVE
|
private static java.lang.String |
CERT_VALID_INACTIVE
|
private static java.lang.String |
IMG_CERT_BLUE_INVALID
|
private static java.lang.String |
IMG_CERT_BLUE_INVALID_DARK
|
private static java.lang.String |
IMG_CERT_BLUE_NOK
|
private static java.lang.String |
IMG_CERT_BLUE_NOK_DARK
|
private static java.lang.String |
IMG_CERT_BLUE_OK
|
private static java.lang.String |
IMG_CERT_BLUE_OK_DARK
|
private static java.lang.String |
IMG_CERT_ORANGE_INVALID
|
private static java.lang.String |
IMG_CERT_ORANGE_INVALID_DARK
|
private static java.lang.String |
IMG_CERT_ORANGE_NOK
|
private static java.lang.String |
IMG_CERT_ORANGE_NOK_DARK
|
private static java.lang.String |
IMG_CERT_ORANGE_OK
|
private static java.lang.String |
IMG_CERT_ORANGE_OK_DARK
|
private static java.lang.String |
IMG_CERT_PURPLE_INVALID
|
private static java.lang.String |
IMG_CERT_PURPLE_INVALID_DARK
|
private static java.lang.String |
IMG_CERT_PURPLE_NOK
|
private static java.lang.String |
IMG_CERT_PURPLE_NOK_DARK
|
private static java.lang.String |
IMG_CERT_PURPLE_OK
|
private static java.lang.String |
IMG_CERT_PURPLE_OK_DARK
|
static java.lang.String |
IMG_CERTDISABLEDICON
|
static java.lang.String |
IMG_CERTENABLEDICON
|
private static java.lang.String |
IMG_PATH
|
static java.lang.String |
IMG_WARNING
|
private java.awt.Font |
KEY_FONT
|
private javax.swing.JLabel |
LABEL
|
private javax.swing.JLabel |
lbl_summaryIcon
|
private javax.swing.JList |
m_certList
|
private javax.swing.DefaultListModel |
m_certListModel
|
private JAPCertificate |
m_detailedCert
|
private java.util.Locale |
m_Locale
|
private CertDetailsDialog.CertShortInfoPanel |
m_shortInfoPanel
|
private javax.swing.JTabbedPane |
m_tabbedPane
|
private static java.lang.String |
MSG_ALERT_CERTDATE_EXPIRED
|
private static java.lang.String |
MSG_ALERT_CERTDATE_NOTYET
|
private static java.lang.String |
MSG_ALERT_NOT_TRUSTED
|
private static java.lang.String |
MSG_ALERT_SELF_SIGNED
|
private static java.lang.String |
MSG_CERT_HIERARCHY
|
private static java.lang.String |
MSG_CERT_INFO_BORDER
|
static java.lang.String |
MSG_CERT_NOT_VERIFIED
|
static java.lang.String |
MSG_CERT_VERIFIED
|
static java.lang.String |
MSG_CERTNOTVALID
|
static java.lang.String |
MSG_CERTVALID
|
private static java.lang.String |
MSG_DETAILS
|
private static java.lang.String |
MSG_SHOW_CERT
|
private static java.lang.String |
MSG_SYMBOLS
|
private static java.lang.String |
MSG_TITLE
|
private static java.lang.String |
MSG_X509Attribute_C
|
private static java.lang.String |
MSG_X509Attribute_CN
|
private static java.lang.String |
MSG_X509Attribute_EMAIL
|
private static java.lang.String |
MSG_X509Attribute_EMAILADDRESS
|
private static java.lang.String |
MSG_X509Attribute_GIVENNAME
|
private static java.lang.String |
MSG_X509Attribute_L
|
private static java.lang.String |
MSG_X509Attribute_O
|
private static java.lang.String |
MSG_X509Attribute_OU
|
private static java.lang.String |
MSG_X509Attribute_ST
|
private static java.lang.String |
MSG_X509Attribute_SURNAME
|
private java.lang.String |
str
|
private java.awt.Color |
TITLE_COLOR
|
private static java.lang.String |
TITLE_DISTINGUISHEDNAME
|
private static java.lang.String |
TITLE_EXTENSIONS
|
private java.awt.Font |
TITLE_FONT
|
private static java.lang.String |
TITLE_IDENTIFICATION
|
private static java.lang.String |
TITLE_IDENTIFICATION_MD5
|
private static java.lang.String |
TITLE_IDENTIFICATION_SERIAL
|
private static java.lang.String |
TITLE_IDENTIFICATION_SHA1
|
private static java.lang.String |
TITLE_ISSUER
|
private static java.lang.String |
TITLE_KEYS
|
private static java.lang.String |
TITLE_KEYS_ALGORITHM
|
private static java.lang.String |
TITLE_KEYS_KEYLENGTH
|
private static java.lang.String |
TITLE_KEYS_SIGNALGORITHM
|
private static java.lang.String |
TITLE_VALIDITY
|
private static java.lang.String |
TITLE_VALIDITY_FROM
|
private static java.lang.String |
TITLE_VALIDITY_GENERAL
|
private static java.lang.String |
TITLE_VALIDITY_TO
|
private static java.lang.String |
UNKNOWN_EXTENSION
|
private java.awt.Font |
VALUE_FONT
|
Fields inherited from class gui.dialog.JAPDialog |
---|
FORMAT_DEFAULT_SCREEN, FORMAT_GOLDEN_RATIO_PHI, FORMAT_WIDE_SCREEN, MSG_BTN_PROCEED, MSG_BTN_RETRY, MSG_ERROR_UNDISPLAYABLE, MSG_ERROR_UNKNOWN, MSG_TITLE_CONFIRMATION, MSG_TITLE_ERROR, MSG_TITLE_INFO, MSG_TITLE_WARNING, XML_ATTR_OPTIMIZED_FORMAT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
CertDetailsDialog(java.awt.Component a_parent,
JAPCertificate a_cert,
boolean a_bIsVerifyable,
java.util.Locale a_locale)
|
|
CertDetailsDialog(java.awt.Component a_parent,
JAPCertificate a_cert,
boolean a_bIsVerifyable,
java.util.Locale a_locale,
CertPath a_certPath)
|
Method Summary | |
---|---|
private javax.swing.JPanel |
drawCertPathPanel(CertPath a_certPath)
Draws the Panel that shows the certification Path |
private TitledGridBagPanel |
drawDetailsPanel(JAPCertificate a_cert,
boolean a_bIsVerifyable)
|
private java.util.Vector |
idsToNames(java.util.Vector a_vector)
Translates a Vector of numerical identifiers into human readable names |
void |
mouseClicked(java.awt.event.MouseEvent e)
Invoked when the mouse button has been clicked (pressed and released) on a component. |
void |
mouseEntered(java.awt.event.MouseEvent e)
Invoked when the mouse enters a component. |
void |
mouseExited(java.awt.event.MouseEvent e)
Invoked when the mouse exits a component. |
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a component. |
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a component. |
private void |
replaceCountryCodeByCountryName(java.util.Vector a_attributes,
java.util.Vector a_identifiers)
Looks for the C identifier and replaces the corresponding attribute by a country name if possible. |
private void |
setSize()
|
private void |
showCert()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MSG_CERTVALID
public static final java.lang.String MSG_CERTNOTVALID
public static final java.lang.String MSG_CERT_VERIFIED
public static final java.lang.String MSG_CERT_NOT_VERIFIED
private static final java.lang.String MSG_TITLE
private static final java.lang.String MSG_X509Attribute_ST
private static final java.lang.String MSG_X509Attribute_L
private static final java.lang.String MSG_X509Attribute_C
private static final java.lang.String MSG_X509Attribute_CN
private static final java.lang.String MSG_X509Attribute_O
private static final java.lang.String MSG_X509Attribute_OU
private static final java.lang.String MSG_X509Attribute_EMAIL
private static final java.lang.String MSG_SHOW_CERT
private static final java.lang.String MSG_CERT_HIERARCHY
private static final java.lang.String MSG_SYMBOLS
private static final java.lang.String MSG_DETAILS
private static final java.lang.String MSG_X509Attribute_EMAILADDRESS
private static final java.lang.String MSG_X509Attribute_SURNAME
private static final java.lang.String MSG_X509Attribute_GIVENNAME
private static final java.lang.String MSG_ALERT_CERTDATE_EXPIRED
private static final java.lang.String MSG_ALERT_CERTDATE_NOTYET
private static final java.lang.String MSG_ALERT_SELF_SIGNED
private static final java.lang.String MSG_ALERT_NOT_TRUSTED
private static final java.lang.String UNKNOWN_EXTENSION
private static final java.lang.String TITLE_DISTINGUISHEDNAME
private static final java.lang.String TITLE_ISSUER
private static final java.lang.String TITLE_VALIDITY
private static final java.lang.String TITLE_VALIDITY_GENERAL
private static final java.lang.String TITLE_VALIDITY_TO
private static final java.lang.String TITLE_VALIDITY_FROM
private static final java.lang.String TITLE_EXTENSIONS
private static final java.lang.String TITLE_IDENTIFICATION
private static final java.lang.String TITLE_IDENTIFICATION_SHA1
private static final java.lang.String TITLE_IDENTIFICATION_MD5
private static final java.lang.String TITLE_IDENTIFICATION_SERIAL
private static final java.lang.String TITLE_KEYS
private static final java.lang.String TITLE_KEYS_ALGORITHM
private static final java.lang.String TITLE_KEYS_KEYLENGTH
private static final java.lang.String TITLE_KEYS_SIGNALGORITHM
private static final java.lang.String MSG_CERT_INFO_BORDER
private static final java.lang.String CERT_VALID_INACTIVE
private static final java.lang.String CERT_INVALID_INACTIVE
private final javax.swing.JLabel LABEL
private final java.awt.Color TITLE_COLOR
private final java.awt.Color ALERT_COLOR
private final java.awt.Font TITLE_FONT
private final java.awt.Font KEY_FONT
private final java.awt.Font VALUE_FONT
private final java.awt.Font ALERT_FONT
public static final java.lang.String IMG_CERTENABLEDICON
public static final java.lang.String IMG_CERTDISABLEDICON
public static final java.lang.String IMG_WARNING
private static final java.lang.String IMG_PATH
private static final java.lang.String IMG_CERT_ORANGE_OK
private static final java.lang.String IMG_CERT_ORANGE_NOK
private static final java.lang.String IMG_CERT_ORANGE_INVALID
private static final java.lang.String IMG_CERT_ORANGE_OK_DARK
private static final java.lang.String IMG_CERT_ORANGE_NOK_DARK
private static final java.lang.String IMG_CERT_ORANGE_INVALID_DARK
private static final java.lang.String IMG_CERT_PURPLE_OK
private static final java.lang.String IMG_CERT_PURPLE_NOK
private static final java.lang.String IMG_CERT_PURPLE_INVALID
private static final java.lang.String IMG_CERT_PURPLE_OK_DARK
private static final java.lang.String IMG_CERT_PURPLE_NOK_DARK
private static final java.lang.String IMG_CERT_PURPLE_INVALID_DARK
private static final java.lang.String IMG_CERT_BLUE_OK
private static final java.lang.String IMG_CERT_BLUE_NOK
private static final java.lang.String IMG_CERT_BLUE_INVALID
private static final java.lang.String IMG_CERT_BLUE_OK_DARK
private static final java.lang.String IMG_CERT_BLUE_NOK_DARK
private static final java.lang.String IMG_CERT_BLUE_INVALID_DARK
private javax.swing.JLabel lbl_summaryIcon
private java.util.Locale m_Locale
private java.lang.String str
private CertDetailsDialog.CertShortInfoPanel m_shortInfoPanel
private javax.swing.JList m_certList
private javax.swing.JTabbedPane m_tabbedPane
private javax.swing.DefaultListModel m_certListModel
private JAPCertificate m_detailedCert
Constructor Detail |
---|
public CertDetailsDialog(java.awt.Component a_parent, JAPCertificate a_cert, boolean a_bIsVerifyable, java.util.Locale a_locale, CertPath a_certPath)
a_parent
- The parent objecta_cert
- JAPCertificate which will be showna_bIsVerifyable
- boolean indicating if the cert has been verifieda_locale
- the current localea_certPath
- the certPath of the displayed certificatepublic CertDetailsDialog(java.awt.Component a_parent, JAPCertificate a_cert, boolean a_bIsVerifyable, java.util.Locale a_locale)
a_parent
- The parent objecta_cert
- JAPCertificate which will be showna_bIsVerifyable
- boolean indicating if the cert has been verifieda_locale
- the current localeMethod Detail |
---|
private void setSize()
private java.util.Vector idsToNames(java.util.Vector a_vector)
a_vector
- Vector with numerical identifiers
anon.crypto.X509DistinguishedName.getAttributeNameFromAttributeIdentifier()
private TitledGridBagPanel drawDetailsPanel(JAPCertificate a_cert, boolean a_bIsVerifyable)
private javax.swing.JPanel drawCertPathPanel(CertPath a_certPath)
a_certPath
- The certPath of the Certificate that is shown in this
CertDetailsDialog
private void showCert()
private void replaceCountryCodeByCountryName(java.util.Vector a_attributes, java.util.Vector a_identifiers)
a_attributes
- a Vector with distinguished name attributesa_identifiers
- a Vector with identifiers corresponding with the dn attributespublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |