Coverage Report - org.mule.module.jaas.MuleJaasPrincipal
 
Classes in this File Line Coverage Branch Coverage Complexity
MuleJaasPrincipal
0%
0/8
0%
0/2
1.5
 
 1  
 /*
 2  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 3  
  * The software in this package is published under the terms of the CPAL v1.0
 4  
  * license, a copy of which has been included with this distribution in the
 5  
  * LICENSE.txt file.
 6  
  */
 7  
 package org.mule.module.jaas;
 8  
 
 9  
 import java.io.Serializable;
 10  
 import java.security.Principal;
 11  
 
 12  
 public class MuleJaasPrincipal implements Principal, Serializable
 13  
 {
 14  
     private final String name;
 15  
 
 16  
     public MuleJaasPrincipal(String name)
 17  0
     {
 18  0
         if (name == null)
 19  
         {
 20  0
             throw new IllegalArgumentException("Null name");
 21  
         }
 22  0
         this.name = name;
 23  0
     }
 24  
 
 25  
     public String getName()
 26  
     {
 27  0
         return name;
 28  
     }
 29  
 
 30  
     public String toString()
 31  
     {
 32  0
         return name;
 33  
     }
 34  
 
 35  
     public int hasCode()
 36  
     {
 37  0
         return name.hashCode();
 38  
     }
 39  
 }