00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 #ifndef COH_GENERIC_PRINCIPAL_HPP
00017 #define COH_GENERIC_PRINCIPAL_HPP
00018 
00019 #include "coherence/lang.ns"
00020 
00021 #include "coherence/security/Principal.hpp"
00022 
00023 COH_OPEN_NAMESPACE2(coherence,security)
00024 
00025 
00026 
00027 
00028 
00029 
00030 
00031 class COH_EXPORT GenericPrincipal
00032     : public cloneable_spec<GenericPrincipal,
00033         extends<Object>,
00034         implements<Principal> >
00035     {
00036     friend class factory<GenericPrincipal>;
00037 
00038     
00039 
00040     private:
00041 
00042 
00043 
00044 
00045 
00046         GenericPrincipal(String::View vsName);
00047 
00048 
00049 
00050 
00051         GenericPrincipal(const GenericPrincipal& that);
00052 
00053 
00054     
00055 
00056     public:
00057 
00058 
00059 
00060         virtual String::View getName() const;
00061 
00062 
00063     
00064 
00065     public:
00066 
00067 
00068 
00069         virtual bool equals(Object::View vThat) const;
00070 
00071 
00072 
00073 
00074         virtual size32_t hashCode() const;
00075 
00076 
00077 
00078 
00079         virtual bool isImmutable() const;
00080 
00081 
00082 
00083 
00084         virtual TypedHandle<const String> toString() const;
00085 
00086 
00087     
00088 
00089     private:
00090 
00091 
00092 
00093         FinalView<String> f_vsName;
00094     };
00095 
00096 COH_CLOSE_NAMESPACE2
00097 
00098 #endif // COH_GENERIC_PRINCIPAL_HPP