Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
/*
 * Principal.java November 2002
 *
 * Copyright (C) 2002, Niall Gallagher <niallg@users.sf.net>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 * implied. See the License for the specific language governing 
 * permissions and limitations under the License.
 */
 
package divconq.www.http;

The Principal interface is used to describe a user that has a name and password. This should not be confused with the java.security.Principal interface which does not provide getPassword.

Author(s):
Niall Gallagher
public interface Principal {

   
The getPassword method 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
   String getPassword();
   
   
The getName method 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
   String getName();
New to GrepCode? Check out our FAQ X