Oracle Coherence for C++ API
Release 3.6.0.0

E15728-01

coherence/security/DefaultIdentityAsserter.hpp

00001 /*
00002 * DefaultIdentityAsserter.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_DEFAULT_IDENTITY_ASSERTER_HPP
00017 #define COH_DEFAULT_IDENTITY_ASSERTER_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/security/IdentityAsserter.hpp"
00022 
00023 COH_OPEN_NAMESPACE2(coherence,security)
00024 
00025 
00026 /**
00027 * The default implementation of the IdentityAsserter interface.
00028 * <p>
00029 * The default implementation asserts that the token is a Subject.
00030 *
00031 * @author dag  2009.11.16
00032 */
00033 class DefaultIdentityAsserter
00034     : public class_spec<DefaultIdentityAsserter,
00035         extends<Object>,
00036         implements<IdentityAsserter> >
00037     {
00038     friend class factory<DefaultIdentityAsserter>;
00039 
00040     // ----- IdentityAsserter interface -------------------------------------
00041 
00042     public:
00043         /**
00044         * {@inheritDoc}
00045         */
00046         virtual Subject::View assertIdentity(Object::View vToken) const;
00047 
00048 
00049     // ----- constants ------------------------------------------------------
00050 
00051     public:
00052         /**
00053         * Get the singleton instance of the DefaultIdentityAsserter.
00054         */
00055         static DefaultIdentityAsserter::Handle getInstance();
00056     };
00057 
00058 COH_CLOSE_NAMESPACE2
00059 
00060 #endif // COH_DEFAULT_IDENTITY_ASSERTER_HPP
Copyright © 2000, 2010, Oracle and/or its affiliates. All rights reserved.