Package org.red5.server.security.jaas
Class SimplePrincipal
- java.lang.Object
-
- org.red5.server.security.jaas.SimplePrincipal
-
- All Implemented Interfaces:
Serializable,Principal
public class SimplePrincipal extends Object implements Principal, Serializable
Represents a user.
Principals may be associated with a particularSubjectto augment it with an additional identity. Authorization decisions can be based upon the Principals associated with aSubject.- See Also:
Principal,Subject, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimplePrincipal(String name, String password)Create a Principal with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()StringgetPassword()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
SimplePrincipal
public SimplePrincipal(String name, String password)
Create a Principal with the given name.- Parameters:
name- the username for this userpassword- the password for this user- Throws:
NullPointerException- if the name is null.
-
-