Package org.simpleframework.http
Interface Principal
-
- All Known Implementing Classes:
PrincipalParser
public interface PrincipalThePrincipalinterface is used to describe a user that has a name and password. This should not be confused with thejava.security.Principalinterface which does not providegetPassword.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetName()ThegetNamemethod is used to retreive the name of the principal.java.lang.StringgetPassword()ThegetPasswordmethod is used to retrieve the password of the principal.
-
-
-
Method Detail
-
getPassword
java.lang.String getPassword()
ThegetPasswordmethod is used to retrieve the password of the principal. This is the password tag in the RFC 2616 Authorization credentials expression.- Returns:
- this returns the password for this principal
-
getName
java.lang.String getName()
ThegetNamemethod is used to retreive the name of the principal. This is the name tag in the RFC 2616 Authorization credentials expression.- Returns:
- this returns the name of this principal
-
-