org.jboss.security.propertyeditor
Class PrincipalEditor
java.lang.Object
java.beans.PropertyEditorSupport
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
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 |
PrincipalEditor
public PrincipalEditor()
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.