Package org.red5.server.security.jaas
Class SimplePrincipal
- java.lang.Object
-
- org.red5.server.security.jaas.SimplePrincipal
-
- All Implemented Interfaces:
java.io.Serializable,java.security.Principal
public class SimplePrincipal extends java.lang.Object implements java.security.Principal, java.io.SerializableRepresents 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(java.lang.String name, java.lang.String password)Create a Principal with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()java.lang.StringgetPassword()inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfacejava.security.Principal
-
getPassword
public java.lang.String getPassword()
- Returns:
- the passwd
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.security.Principal- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.security.Principal- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Specified by:
toStringin interfacejava.security.Principal- Overrides:
toStringin classjava.lang.Object
-
-