org.jboss.security.propertyeditor
Class PrincipalEditor

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

public class PrincipalEditor
extends PropertyEditorSupport

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

Version:
$Revision: 1.2 $
Author:
Scott.Stark@jboss.org

Constructor Summary
PrincipalEditor()
           
 
Method Summary
 String getAsText()
           
 void setAsText(String text)
          Build a SimplePrincipal
 
Methods inherited from class java.beans.PropertyEditorSupport
addPropertyChangeListener, firePropertyChange, getCustomEditor, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setSource, 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(String text)
Build a SimplePrincipal

Specified by:
setAsText in interface PropertyEditor
Overrides:
setAsText in class PropertyEditorSupport
Parameters:
text, - the name of the Principal

getAsText

public String getAsText()
Specified by:
getAsText in interface PropertyEditor
Overrides:
getAsText in class PropertyEditorSupport
Returns:
the name of the Principal


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.