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

E80355-01

coherence/security/DefaultIdentityTransformer.hpp

00001 /*
00002 * DefaultIdentityTransformer.hpp
00003 *
00004 * Copyright (c) 2000, 2017, 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_TRANSFORMER_HPP
00017 #define COH_DEFAULT_IDENTITY_TRANSFORMER_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/IdentityTransformer.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 IdentityTransformer interface, which
00033 * simply returns the Subject that is passed to it.
00034 *
00035 * @author dag 2009.12.21
00036 */
00037 class DefaultIdentityTransformer
00038     : public class_spec<DefaultIdentityTransformer,
00039         extends<Object>,
00040         implements<IdentityTransformer> >
00041     {
00042     friend class factory<DefaultIdentityTransformer>;
00043 
00044     // ----- IdentityTransformer interface ----------------------------------
00045 
00046     public:
00047         /**
00048         * {@inheritDoc}
00049         */
00050         virtual Object::View transformIdentity(Subject::View vSubject,
00051                 Service::View vService) const;
00052 
00053 
00054     // ----- constants ------------------------------------------------------
00055 
00056     public:
00057         /**
00058         * Get the singleton instance of the DefaultIdentityTransformer.
00059         */
00060         static DefaultIdentityTransformer::Handle getInstance();
00061    };
00062 
00063 COH_CLOSE_NAMESPACE2
00064 
00065 #endif // COH_DEFAULT_IDENTITY_TRANSFORMER_HPP
Copyright © 2000, 2017, Oracle and/or its affiliates. All rights reserved.