Coverage Report - org.acegisecurity.userdetails.ldap.LdapUserDetails
 
Classes in this File Line Coverage Branch Coverage Complexity
LdapUserDetails
N/A 
N/A 
1
 
 1  
 /* Copyright 2004, 2005, 2006 Acegi Technology Pty Limited
 2  
  *
 3  
  * Licensed under the Apache License, Version 2.0 (the "License");
 4  
  * you may not use this file except in compliance with the License.
 5  
  * You may obtain a copy of the License at
 6  
  *
 7  
  *     http://www.apache.org/licenses/LICENSE-2.0
 8  
  *
 9  
  * Unless required by applicable law or agreed to in writing, software
 10  
  * distributed under the License is distributed on an "AS IS" BASIS,
 11  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 12  
  * See the License for the specific language governing permissions and
 13  
  * limitations under the License.
 14  
  */
 15  
 
 16  
 package org.acegisecurity.userdetails.ldap;
 17  
 
 18  
 import org.acegisecurity.userdetails.UserDetails;
 19  
 
 20  
 import javax.naming.directory.Attributes;
 21  
 import javax.naming.ldap.Control;
 22  
 
 23  
 
 24  
 /**
 25  
  * Captures the information for a user's LDAP entry.
 26  
  *
 27  
  * @author Luke Taylor
 28  
  * @version $Id$
 29  
  */
 30  
 public interface LdapUserDetails extends UserDetails {
 31  
     //~ Methods ========================================================================================================
 32  
 
 33  
     /**
 34  
      * The attributes for the user's entry in the directory (or a subset of them, depending on what was
 35  
      * retrieved from the directory)
 36  
      *
 37  
      * @return the user's attributes, or an empty array if none were obtained, never null.
 38  
      */
 39  
     Attributes getAttributes();
 40  
 
 41  
     /**
 42  
      * Returns any LDAP response controls (as part of a user authentication process, for example).
 43  
      *
 44  
      * @return an array of LDAP Control instances, never null
 45  
      */
 46  
     Control[] getControls();
 47  
 
 48  
     /**
 49  
      * The DN of the entry for this user's account.
 50  
      *
 51  
      * @return the user's DN
 52  
      */
 53  
     String getDn();
 54  
 }