Home | History | Annotate | Download | only in include
      1 /* ------------------------------------------------------------------
      2  * Copyright (C) 1998-2009 PacketVideo
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
     13  * express or implied.
     14  * See the License for the specific language governing permissions
     15  * and limitations under the License.
     16  * -------------------------------------------------------------------
     17  */
     18 #ifndef PVMF_CPMPLUGIN_AUTHENTICATION_INTERFACE_H_INCLUDED
     19 #define PVMF_CPMPLUGIN_AUTHENTICATION_INTERFACE_H_INCLUDED
     20 
     21 #ifndef OSCL_BASE_H_INCLUDED
     22 #include "oscl_base.h"
     23 #endif
     24 #ifndef OSCL_TYPES_H_INCLUDED
     25 #include "oscl_types.h"
     26 #endif
     27 #ifndef PV_UUID_H_INCLUDED
     28 #include "pv_uuid.h"
     29 #endif
     30 #ifndef PV_INTERFACE_H_INCLUDED
     31 #include "pv_interface.h"
     32 #endif
     33 
     34 #define PVMF_CPMPLUGIN_AUTHENTICATION_INTERFACE_MIMETYPE "pvxxx/pvmf/cpm/plugin/authentication_interface"
     35 #define PVMFCPMPluginAuthenticationInterfaceUuid PVUuid(0xca20319a,0x33f9,0x484f,0x8d,0x1c,0xa5,0x1e,0x23,0x4c,0xe6,0x02)
     36 
     37 /**
     38  * Authentication interface for all Content Policy Manager Plugins
     39  */
     40 class PVMFCPMPluginAuthenticationInterface : public PVInterface
     41 {
     42     public:
     43         /**
     44          * Asynchronous method to authenticate with a plug-in.
     45          *
     46          * @param aSessionId The assigned plugin session ID to use for this request
     47          * @param aAuthenticationData The authentication data that may be needed by the plugin to
     48          *                            authenticate
     49          * @returns A unique command id for asynchronous completion.
     50          */
     51         virtual PVMFCommandId AuthenticateUser(PVMFSessionId aSessionId,
     52                                                OsclAny* aAuthenticationData,
     53                                                OsclAny* aContext = NULL) = 0;
     54 };
     55 
     56 
     57 #endif //PVMF_CPMPLUGIN_AUTHENTICATION_INTERFACE_H_INCLUDED
     58 
     59