Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.1.0)

E69640-01

coherence/security/DefaultIdentityAsserter.hpp

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