Oracle Coherence for C++ API
Release 3.6.1.0
E18813-01

- Main Page
- Namespaces
- Classes
- Files

# coherence/security/Principal.hpp

    00001 /*
    00002 * Principal.hpp
    00003 *
    00004 * Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
    00005 *
    00006 * Oracle is a registered trademarks of Oracle Corporation and/or its
    00007 * affiliates.
    00008 *
    00009 * This software is the confidential and proprietary information of Oracle
    00010 * Corporation. You shall not disclose such confidential and proprietary
    00011 * information and shall use it only in accordance with the terms of the
    00012 * license agreement you entered into with Oracle.
    00013 *
    00014 * This notice may not be removed or altered.
    00015 */
    00016 #ifndef COH_PRINCIPAL_HPP
    00017 #define COH_PRINCIPAL_HPP
    00018
    00019 #include "coherence/lang.ns"
    00020
    00021 COH_OPEN_NAMESPACE2(coherence,security)
    00022
    00023 /**
    00024 * A Principal represents a portion of an overall identity, such as a person,
    00025 * or group.
    00026 *
    00027 * @see Subject
    00028 *
    00029 * @author mf  2008.08.22
    00030 */
    00031 class Principal
    00032     : public interface_spec<Principal>
    00033     {
    00034     // ----- Principal interface --------------------------------------------
    00035
    00036     public:
    00037         /**
    00038         * Return the name of this principal.
    00039         *
    00040         * @return the name of this principal
    00041         */
    00042         virtual String::View getName() const = 0;
    00043     };
    00044
    00045 COH_CLOSE_NAMESPACE2
    00046
    00047 #endif // COH_PRINCIPAL_HPP

Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.