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 String
getPassword()
Returns the value of field 'password'.String
getRoles()
Returns the value of field 'roles'.String
getUsername()
Returns the value of field 'username'.boolean
isValid()
void
marshal(Writer out)
void
marshal(ContentHandler handler)
void
setPassword(String password)
Sets the value of field 'password'.void
setRoles(String roles)
Sets the value of field 'roles'.void
setUsername(String username)
Sets the value of field 'username'.static User
unmarshal(Reader reader)
void
validate()
-
-
-
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.MarshalException
org.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:
IOException
org.exolab.castor.xml.MarshalException
org.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.MarshalException
org.exolab.castor.xml.ValidationException
-
validate
public void validate() throws org.exolab.castor.xml.ValidationException
- Throws:
org.exolab.castor.xml.ValidationException
-
-