Code example for Principal

Methods: getName

0
/*    */  
/*    */   public ServletAuthenticatedUser(HttpServletRequest req)
/*    */   { 
/* 38 */     this.req = req;
/* 39 */     Principal principal = req.getUserPrincipal();
/* 40 */     this.name = (principal == null ? null : principal.getName());
/*    */   } 
/*    */  
/*    */   public String getName()
/*    */   { 
/* 48 */     return this.name;
/*    */   } 
/*    */  
/*    */   public HttpServletRequest getRequest() 
/*    */   { 
/* 53 */     return this.req;
/*    */   } 
/*    */ } 
 
/* Location:           E:\Windows\Documents\flashdmp\New folder\ProjectFlashToolV0.01.jar 
Stop searching for code, let great code find you!  Add Codota to your java IDE