|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.ehsbe.commons.gui.JxX509CertPanel
public class JxX509CertPanel
A visual inspector for an X509 certificate.
Purpose $keyUsage[0] ... $keyUsage[MAX_KEYS] $nsExt[0] ... $nsExt[n] Issued to Common Name: $cn Organization: $org Org. Unit: $unit Serial Number: $sn Issued by Common Name: $cn Organization: $org Org. Unit: $unit Validity Not before: $start Not after: $stop Misc Infos Cert. Version: $vers Sign.-Algorithm: $alg Key-Info (pubkey): $info SHA-Fingerprint: $sha MD5-Fingerprint: $md5
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary |
---|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JxX509CertPanel()
Create an empty cert panel with the default locale. |
|
JxX509CertPanel(Locale locale)
Create an empty cert panel with the given locale. |
|
JxX509CertPanel(Locale locale,
X509Certificate cert)
Default constructor. |
|
JxX509CertPanel(X509Certificate cert)
Create a panel displaying the given cert using the default locale. |
Method Summary | |
---|---|
void |
setCertificate(X509Certificate cert)
Set the certificate to be displayed. |
void |
setLocale(Locale locale)
Set the local for i18n. |
static void |
showCertificate(Component parent,
Certificate cert)
Convinience method to show an dialog, which displays the given certificate. |
void |
updateUI()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JxX509CertPanel()
public JxX509CertPanel(Locale locale)
locale
- locale to use for i18n. If null
default
locale will be used.public JxX509CertPanel(X509Certificate cert)
cert
- certificate to display. Might be null
.public JxX509CertPanel(Locale locale, X509Certificate cert)
locale
- locale to use for i18n. If null
, the
default locale will be used instead.cert
- certificate to display. Might be null
Method Detail |
---|
public void updateUI()
updateUI
in class JPanel
public void setCertificate(X509Certificate cert)
cert
- certificate to display. Might be null
.public void setLocale(Locale locale)
setLocale
in class Component
locale
- locale to set. If null
, the default locale
will be used.public static void showCertificate(Component parent, Certificate cert)
parent
- the anchor for the dialog.cert
- the certificate to display. Might be null
.
Should be an X509Certificate
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |