Facebook\HackCodegen\SignedSourceBase
Facebook\HackCodegen\SignedSourceBase
Interface Synopsis
namespace Facebook\HackCodegen;
abstract class SignedSourceBase {...}
Public Methods
::getPattern(): string
::getSigningToken(): string
Get the signing token, which you must embed in the file you wish to sign::hasValidSignature(string $file_data): bool
Check if a file has a valid signature::hasValidSignatureFromAnySigner(string $data): bool
::isSigned(string $file_data): bool
Determine if a file is signed or not::isSignedByAnySigner(string $data): bool
::signFile(string $file_data): string
Sign a source file into which you have previously embedded a signing token::verifySignature(string $file_data): bool
Verify a file’s signature
Protected Methods
::getTokenName(): string
::preprocess(string $file_data): string
Override this method to process the file data before signing a file or before checking the signature