Package nl.b3p.commons.security.xml
Class User
- java.lang.Object
-
- nl.b3p.commons.security.xml.User
-
- All Implemented Interfaces:
Serializable
public class User extends Object implements Serializable
- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()Returns the value of field 'password'.StringgetRoles()Returns the value of field 'roles'.StringgetUsername()Returns the value of field 'username'.booleanisValid()voidmarshal(Writer out)voidmarshal(ContentHandler handler)voidsetPassword(String password)Sets the value of field 'password'.voidsetRoles(String roles)Sets the value of field 'roles'.voidsetUsername(String username)Sets the value of field 'username'.static Userunmarshal(Reader reader)voidvalidate()
-
-
-
Method Detail
-
getPassword
public String getPassword()
Returns the value of field 'password'.- Returns:
- the value of field 'password'.
-
getRoles
public String getRoles()
Returns the value of field 'roles'.- Returns:
- the value of field 'roles'.
-
getUsername
public String getUsername()
Returns the value of field 'username'.- Returns:
- the value of field 'username'.
-
isValid
public boolean isValid()
-
marshal
public void marshal(Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
out-- Throws:
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationException
-
marshal
public void marshal(ContentHandler handler) throws IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
handler-- Throws:
IOExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationException
-
setPassword
public void setPassword(String password)
Sets the value of field 'password'.- Parameters:
password- the value of field 'password'.
-
setRoles
public void setRoles(String roles)
Sets the value of field 'roles'.- Parameters:
roles- the value of field 'roles'.
-
setUsername
public void setUsername(String username)
Sets the value of field 'username'.- Parameters:
username- the value of field 'username'.
-
unmarshal
public static User unmarshal(Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- Parameters:
reader-- Throws:
org.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationException
-
validate
public void validate() throws org.exolab.castor.xml.ValidationException- Throws:
org.exolab.castor.xml.ValidationException
-
-