|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.clearfield.security.CertificateTableModel
public class CertificateTableModel
A model which handles the requirements of separating the certificate information into differing sections.
Copyright © 2006 Clearfield Ltd. This software is distributed under the BSD license. See the accompanying license.txt for details.
| Field Summary | |
|---|---|
protected java.security.cert.Certificate |
certificate
|
protected java.lang.String[] |
columnNames
|
protected java.text.DateFormat |
formatter
|
protected static int |
ISSUER_INDEX
|
protected java.util.Vector |
modelListeners
|
protected java.lang.String[] |
rowNames
|
protected java.lang.String[] |
rowValues
|
protected static int |
SERIAL_NUMER_INDEX
|
protected static int |
SIGNATURE_ALGORITHM_INDEX
|
protected static int |
SIGNATURE_INDEX
|
protected static int |
SUBJECT_INDEX
|
protected static int |
VALIDITY_INDEX
|
protected static int |
VERSION_INDEX
|
| Constructor Summary | |
|---|---|
CertificateTableModel()
Constructs the model. |
|
| Method Summary | |
|---|---|
void |
addTableModelListener(javax.swing.event.TableModelListener l)
Adds a listener to this model. |
protected void |
clearDataFields()
Clears all the data fields and sets them to nothing. |
protected java.lang.String |
convertSignatureToString(byte[] signature)
This function converts the signature byte array to a matching string. |
protected void |
fireTableModelEvent()
Fires the model event to the listener. |
java.security.cert.Certificate |
getCertificate()
Returns the certificate which powers the model. |
java.lang.Class |
getColumnClass(int columnIndex)
Get the class of the column index. |
int |
getColumnCount()
Returns the number of columns in the table. |
java.lang.String |
getColumnName(int columnIndex)
Returns the column name matching the specified column index. |
int |
getRowCount()
Returns the number of rows in the model. |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the object which matches the corresponding table cell. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns the editable state of the cell. |
void |
removeTableModelListener(javax.swing.event.TableModelListener l)
Removes the specified model listener. |
void |
setCertificate(java.security.cert.Certificate certificate)
Sets the certificate which powers the model. |
protected void |
setUpDataFields()
Sets up the data fields given the certificate. |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
Sets the cell value at the specified row/column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.security.cert.Certificate certificate
protected java.lang.String[] columnNames
protected static final int VERSION_INDEX
protected static final int SERIAL_NUMER_INDEX
protected static final int SIGNATURE_ALGORITHM_INDEX
protected static final int ISSUER_INDEX
protected static final int VALIDITY_INDEX
protected static final int SUBJECT_INDEX
protected static final int SIGNATURE_INDEX
protected java.lang.String[] rowNames
protected java.lang.String[] rowValues
protected java.util.Vector modelListeners
protected java.text.DateFormat formatter
| Constructor Detail |
|---|
public CertificateTableModel()
| Method Detail |
|---|
public int getRowCount()
getRowCount in interface javax.swing.table.TableModelpublic int getColumnCount()
getColumnCount in interface javax.swing.table.TableModelpublic java.lang.String getColumnName(int columnIndex)
getColumnName in interface javax.swing.table.TableModelcolumnIndex - int index of the column to get the
name for.
public java.lang.Class getColumnClass(int columnIndex)
getColumnClass in interface javax.swing.table.TableModelcolumnIndex - int index of the column to get the
class for.
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModel
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
getValueAt in interface javax.swing.table.TableModelrowIndex - int row index of the cell.columnIndex - int column index of the cell.
public void setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
setValueAt in interface javax.swing.table.TableModelaValue - Object to set the cell to.rowIndex - int row index of the cell.columnIndex - int column index of the cell.public void addTableModelListener(javax.swing.event.TableModelListener l)
addTableModelListener in interface javax.swing.table.TableModell - TableModelListener which will listen to this model.public void removeTableModelListener(javax.swing.event.TableModelListener l)
removeTableModelListener in interface javax.swing.table.TableModell - TableModelListener to remove.protected void fireTableModelEvent()
public java.security.cert.Certificate getCertificate()
public void setCertificate(java.security.cert.Certificate certificate)
certificate - The certificate to set.protected void clearDataFields()
protected void setUpDataFields()
protected java.lang.String convertSignatureToString(byte[] signature)
signature - byte array containing the signature.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||