bb.gui
Class TextFieldSecure.DocumentSecure

java.lang.Object
  extended by javax.swing.text.AbstractDocument
      extended by javax.swing.text.PlainDocument
          extended by bb.gui.DocumentLimitedLength
              extended by bb.gui.TextFieldSecure.DocumentSecure
All Implemented Interfaces:
Serializable, Document
Enclosing class:
TextFieldSecure

private static class TextFieldSecure.DocumentSecure
extends DocumentLimitedLength

Subclass of DocumentLimitedLength which is designed for high security. This class always uses a TextFieldSecure.ContentSecure instance to hold its data, for the reasons described there. It also offers a zeroOutContent method which hooks into the corresponding ContentSecure method.


Nested Class Summary
 
Nested classes/interfaces inherited from class bb.gui.DocumentLimitedLength
DocumentLimitedLength.UnitTest
 
Nested classes/interfaces inherited from class javax.swing.text.AbstractDocument
AbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement
 
Field Summary
private static long serialVersionUID
           
 
Fields inherited from class javax.swing.text.PlainDocument
lineLimitAttribute, tabSizeAttribute
 
Fields inherited from class javax.swing.text.AbstractDocument
BAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementName
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Constructor Summary
private TextFieldSecure.DocumentSecure(int numberCharsMax)
          Constructor.
 
Method Summary
private  TextFieldSecure.ContentSecure getContentSecure()
           
private  void zeroOutContent()
          Calls getContentSecure.
 
Methods inherited from class bb.gui.DocumentLimitedLength
getNumberCharsMax, getText, insertString
 
Methods inherited from class javax.swing.text.PlainDocument
createDefaultRoot, getDefaultRootElement, getParagraphElement, insertUpdate, removeUpdate
 
Methods inherited from class javax.swing.text.AbstractDocument
addDocumentListener, addUndoableEditListener, createBranchElement, createLeafElement, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, remove, removeDocumentListener, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlock
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

TextFieldSecure.DocumentSecure

private TextFieldSecure.DocumentSecure(int numberCharsMax)
Constructor.

Method Detail

getContentSecure

private TextFieldSecure.ContentSecure getContentSecure()

zeroOutContent

private void zeroOutContent()
Calls getContentSecure.zeroOutContent().