src.com.ibm.as400.security.auth.AS400BasicAuthenticationPrincipal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jt400-jdk8 Show documentation
Show all versions of jt400-jdk8 Show documentation
The Open Source version of the IBM Toolbox for Java
///////////////////////////////////////////////////////////////////////////////
//
// JTOpen (IBM Toolbox for Java - OSS version)
//
// Filename: AS400BasicAuthenticationPrincipal.java
//
// The source code contained herein is licensed under the IBM Public License
// Version 1.0, which has been approved by the Open Source Initiative.
// Copyright (C) 1997-2005 International Business Machines Corporation and
// others. All rights reserved.
//
///////////////////////////////////////////////////////////////////////////////
package com.ibm.as400.security.auth;
import java.security.Principal;
/**
* The AS400BasicAuthenticationPrincipal interface defines IBM i
* principals that can be exploited by authentication services
* that rely on basic user and password authentication.
*
*/
public interface AS400BasicAuthenticationPrincipal extends Principal {
/**
* Returns the user profile name.
*
* @return
* A String containing the name; empty if not assigned.
*
*/
public String getUserProfileName();
/**
* Initializes a principal for the local IBM i system
* based on the given user profile name.
*
* @param name
* The profile name.
*
* @exception Exception
* If an exception occurs.
*
*/
public void initialize(String name) throws Exception;
}