{"record":{"id":"61b2767ee33fad8a","repo":"phalcon/cphalcon","slug":"invalid-not-before","errorCode":null,"errorMessage":"Invalid Not Before","messagePattern":"Invalid Not Before","errorType":"exception","errorClass":"InvalidNotBefore","httpStatus":null,"severity":"error","filePath":"phalcon/Encryption/Security/JWT/Builder.zep","lineNumber":382,"sourceCode":"\n    /**\n     * The \"nbf\" (not before) claim identifies the time before which the JWT\n     * MUST NOT be accepted for processing.  The processing of the \"nbf\"\n     * claim requires that the current date/time MUST be after or equal to\n     * the not-before date/time listed in the \"nbf\" claim.  Implementers MAY\n     * provide for some small leeway, usually no more than a few minutes, to\n     * account for clock skew.  Its value MUST be a number containing a\n     * NumericDate value.  Use of this claim is OPTIONAL.\n     *\n     * @param int $timestamp\n     *\n     * @return static\n     * @throws ValidatorException\n     */\n    public function setNotBefore( int timestamp) -> <static>\n    {\n        if timestamp > time() {\n            throw new InvalidNotBefore();\n        }\n\n        return this->setClaim(Enum::NOT_BEFORE, timestamp);\n    }\n\n    /**\n     * @param string $passphrase\n     *\n     * @return static\n     * @throws ValidatorException\n     */\n    public function setPassphrase( string passphrase) -> <static>\n    {\n        if !preg_match(\n            \"/^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[\\W_]).{16,}$/\",\n            passphrase\n        ) {\n            throw new WeakPassphrase();","sourceCodeStart":364,"sourceCodeEnd":400,"githubUrl":"https://github.com/phalcon/cphalcon/blob/b7419de9cd0a8a3f48441ead84c9f8415d463e25/phalcon/Encryption/Security/JWT/Builder.zep#L364-L400","documentation":"Error \"Invalid Not Before\" thrown in phalcon/cphalcon.","triggerScenarios":"Thrown at phalcon/Encryption/Security/JWT/Builder.zep:382 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b7419de9cd0a8a3f48441ead84c9f8415d463e25","analyzedAt":"2026-08-21T06:21:18.811Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}