Oracle Coherence for C++ API
Release 3.6.1.0

E18813-01

coherence/security/DefaultIdentityTransformer.hpp

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