org.jboss.security.propertyeditor
Class PrincipalEditor

java.lang.Object
  extended byjava.beans.PropertyEditorSupport
      extended byorg.jboss.security.propertyeditor.PrincipalEditor
All Implemented Interfaces:
java.beans.PropertyEditor

public class PrincipalEditor
extends java.beans.PropertyEditorSupport

A property editor for java.security.Principals that uses the org.jboss.security.SimplePrincipal


Constructor Summary
PrincipalEditor()
           
 
Method Summary
 java.lang.String getAsText()
           
 void setAsText(java.lang.String text)
          Build a SimplePrincipal
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setValue, supportsCustomEditor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalEditor

public PrincipalEditor()
Method Detail

setAsText

public void setAsText(java.lang.String text)
Build a SimplePrincipal


getAsText

public java.lang.String getAsText()
Returns:
the name of the Principal