|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pajes.security.DefaultPrincipal
Represents an unknown user when using an AuthenticatedPajeServlet but no authentication method has been provided in the deployment descriptor.
| Constructor Summary | |
DefaultPrincipal(javax.servlet.http.HttpServletRequest request)
Creates a default Principal obbject. |
|
| Method Summary | |
boolean |
equals(java.lang.Object another)
Compares this principal to the specified object. |
java.lang.String |
getName()
Returns the name of this principal. |
int |
hashCode()
Returns a hashcode for this principal. |
java.lang.String |
toString()
Returns a string representation of this principal. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultPrincipal(javax.servlet.http.HttpServletRequest request)
If a Principal exists on the
HttpServletRequest (i.e. if it has been authenticated by
the servlet container), then getName() will return the same as
request.getUserPrincipal().getName(). Otherwise, it will
return request.getRemoteAddr().
request - the HttpServletRequest object.| Method Detail |
public java.lang.String getName()
getName in interface java.security.Principalpublic boolean equals(java.lang.Object another)
equals in interface java.security.Principalanother - principal to compare with.
public int hashCode()
hashCode in interface java.security.Principalpublic java.lang.String toString()
toString in interface java.security.Principal
|
PAJES 2.3.9 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||