Commit 3ff27519 authored by Enrique Sabatel's avatar Enrique Sabatel

TC_CSE_DAU_NTF_007 added

parent 51ff6403
......@@ -2091,7 +2091,7 @@ module OneM2M_Functions {
* @param p_responseStatusCode Response Status Code to be used for the response to the verification request
* @verdict
*/
function f_cse_notifyProcedure_dynamicAuthorizationHandler(in integer p_secInfoType, in AccessControlOperations p_grantedPrivileges := int61, in Timestamp p_privilegesLifetime := "21001231T012345") runs on AeSimu {
function f_cse_notifyProcedure_dynamicAuthorizationHandler(in integer p_secInfoType, in DynAuthJWT p_token := null, in AccessControlOperations p_grantedPrivileges := int61, in Timestamp p_privilegesLifetime := "21001231T012345") runs on AeSimu {
// Local variables
var boolean v_response :=false;
var ResponsePrimitive v_responsePrimitive;
......@@ -2102,7 +2102,7 @@ module OneM2M_Functions {
//Preparation of Notification response to be sent
v_responsePrimitive := valueof(m_responseNotification(int2000, omit));
tc_ac.start;
alt {
[] mcaPortIn.receive(mw_request(mw_notifyNotification(v_notificationRequest))) -> value vc_request {
......@@ -2124,6 +2124,10 @@ module OneM2M_Functions {
v_responsePrimitive.primitiveContent.securityInfo.securityInfoType:=int2; //DynamicAuthorizationResponse
v_responsePrimitive.primitiveContent.securityInfo.dasResponse.dynamicACPInfo.grantedPrivileges.accessControlRule_list[0].accessControlOperations := p_grantedPrivileges;
v_responsePrimitive.primitiveContent.securityInfo.dasResponse.dynamicACPInfo.privilegesLifetime.alt_ := p_privilegesLifetime;
if (p_token!=null)
{
v_responsePrimitive.primitiveContent.securityInfo.dasResponse.tokens[0] := p_token;
}
}
else if (p_secInfoType==1)
{
......@@ -5551,6 +5555,11 @@ module OneM2M_Functions {
* Format shall be YYYYMMDDTHHMMSS
*/
external function fx_generateTimestamp() return charstring;
/**
* @desc Generates a oneM2M JSON Web Token.
*/
external function fx_generateJWT() return DynAuthJWT;
} // end externalFunctions
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment