Added missing method isOwnAddress().
[core.git] / inc / classes / interfaces / handler / protocol / class_HandleableProtocol.php
index 8cfe6d60c8fd634efe0005ad7f8fe145c56cc208..c591b7a0fbb9dd64f367a8c6efcfb6e8f3a6e9b9 100644 (file)
@@ -35,6 +35,22 @@ interface HandleableProtocol extends Handleable {
         * @return      $protocol       Name of used protocol
         */
        function getProtocolName ();
+
+       /**
+        * Validates given 'recipient' if it is a valid UNL. This means that the UNL
+        * can be parsed by the protocol handler.
+        *
+        * @param       $packageData    Valid raw package data
+        * @return      $isValid                Whether the UNL can be validated
+        */
+       function isValidUniversalNodeLocatorByPackageData (array $packageData);
+
+       /**
+        * If the found UNL (address) matches own external or internal address
+        *
+        * @return      $ifMatches      Whether the found UNL matches own addresss
+        */
+       function isOwnAddress ();
 }
 
 // [EOF]