dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal IId


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security/Principal IIdentity.cs,NONE,1.1 IPrincipal.cs,NONE,1.1PrincipalPolicy.cs,NONE,1.1
Date: Fri, 28 Mar 2003 20:38:09 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/Principal
In directory subversions:/tmp/cvs-serv18774/runtime/System/Security/Principal

Added Files:
        IIdentity.cs IPrincipal.cs PrincipalPolicy.cs 
Log Message:


Implement the missing parts of the "AppDomain" class.


--- NEW FILE ---
/*
 * IIdentity.cs - Implementation of the
 *              "System.Security.Principal.IIdentity" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Security.Principal
{

#if !ECMA_COMPAT

public interface IIdentity
{

        // Get the type of authentication used.
        String AuthenticationType { get; }

        // Determine if we have been authenticated.
        bool IsAuthenticated { get; }

        // Get the name associated with this identity.
        String Name { get; }

}; // interface IIdentity

#endif // !ECMA_COMPAT

}; // namespace System.Security.Principal

--- NEW FILE ---
/*
 * IPrincipal.cs - Implementation of the
 *              "System.Security.Principal.IPrincipal" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Security.Principal
{

#if !ECMA_COMPAT

public interface IPrincipal
{

        // Get the identity of the principal.
        IIdentity Identity { get; }

        // Determine whether the principal belongs to a specific role.
        bool IsInRole(String role);

}; // interface IPrincipal

#endif // !ECMA_COMPAT

}; // namespace System.Security.Principal

--- NEW FILE ---
/*
 * PrincipalPolicy.cs - Implementation of the
 *              "System.Security.Principal.PrincipalPolicy" class.
 *
 * Copyright (C) 2003  Southern Storm Software, Pty Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */

namespace System.Security.Principal
{

#if !ECMA_COMPAT

public enum PrincipalPolicy
{
        UnauthenticatedPrincipal = 0,
        NoPrincipal              = 1,
        WindowsPrincipal         = 2

}; // enum PrincipalPolicy

#endif // !ECMA_COMPAT

}; // namespace System.Security.Principal





reply via email to

[Prev in Thread] Current Thread [Next in Thread]