diff --git a/composer.json b/composer.json index 4f9482d..dc0cfe3 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "ext-pdo": "*", "ext-json": "*", "ext-sodium": "*", - "fedi-e2ee/pkd-crypto": "^0.39|1", + "fedi-e2ee/pkd-crypto": "^0.40|1", "fedi-e2ee/pkd-extensions": "^0.2|^1", "guzzlehttp/guzzle": "^7", "laminas/laminas-diactoros": "^3", diff --git a/docs/reference/classes/activitypub.md b/docs/reference/classes/activitypub.md index dd34abe..3a01096 100644 --- a/docs/reference/classes/activitypub.md +++ b/docs/reference/classes/activitypub.md @@ -30,7 +30,7 @@ Namespace: `FediE2EE\PKDServer\ActivityPub` ### Methods -#### [`fromDecoded`](../../../src/ActivityPub/ActivityStream.php#L32-L47) +#### [`fromDecoded`](../../../src/ActivityPub/ActivityStream.php#L28-L43) static · Returns `self` @@ -40,7 +40,7 @@ static · Returns `self` **Throws:** `ActivityPubException` -#### [`fromString`](../../../src/ActivityPub/ActivityStream.php#L52-L55) +#### [`fromString`](../../../src/ActivityPub/ActivityStream.php#L48-L51) static · Returns `self` @@ -50,23 +50,23 @@ static · Returns `self` **Throws:** `ActivityPubException` -#### [`jsonSerialize`](../../../src/ActivityPub/ActivityStream.php#L58-L69) +#### [`jsonSerialize`](../../../src/ActivityPub/ActivityStream.php#L54-L65) Returns `stdClass` **Attributes:** `#[Override]` -#### [`__toString`](../../../src/ActivityPub/ActivityStream.php#L74-L77) +#### [`__toString`](../../../src/ActivityPub/ActivityStream.php#L70-L73) Returns `string` **Throws:** `JsonException` -#### [`isDirectMessage`](../../../src/ActivityPub/ActivityStream.php#L82-L116) +#### [`isDirectMessage`](../../../src/ActivityPub/ActivityStream.php#L78-L112) Returns `bool` -#### [`jsonDecode`](../../../src/ActivityPub/ActivityStream.php#L16-L19) +#### [`jsonDecode`](../../../src/ActivityPub/ActivityStream.php#L15-L18) static · Returns `array` @@ -76,7 +76,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/ActivityPub/ActivityStream.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/ActivityPub/ActivityStream.php#L23-L26) static · Returns `stdClass` @@ -86,7 +86,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/ActivityPub/ActivityStream.php#L33-L39) +#### [`jsonEncode`](../../../src/ActivityPub/ActivityStream.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/core.md b/docs/reference/classes/core.md index 4b2d367..6c1293e 100644 --- a/docs/reference/classes/core.md +++ b/docs/reference/classes/core.md @@ -173,7 +173,7 @@ Collapse multiple types into a number of seconds for Redis. - `$ttl`: `DateInterval|int|null` -#### [`jsonDecode`](../../../src/AppCache.php#L16-L19) +#### [`jsonDecode`](../../../src/AppCache.php#L15-L18) static · Returns `array` @@ -183,7 +183,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/AppCache.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/AppCache.php#L23-L26) static · Returns `stdClass` @@ -193,7 +193,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/AppCache.php#L33-L39) +#### [`jsonEncode`](../../../src/AppCache.php#L32-L38) static · Returns `string` @@ -213,7 +213,7 @@ static · Returns `string` ### Methods -#### [`getHighVolumeCutoff`](../../../src/Math.php#L10-L13) +#### [`getHighVolumeCutoff`](../../../src/Math.php#L9-L12) static · Returns `int` @@ -221,7 +221,7 @@ static · Returns `int` - `$numLeaves`: `int` -#### [`getLowVolumeCutoff`](../../../src/Math.php#L15-L22) +#### [`getLowVolumeCutoff`](../../../src/Math.php#L14-L21) static · Returns `int` @@ -398,7 +398,7 @@ Returns `bool` **Throws:** `BundleException`, `CacheException`, `ConcurrentException`, `CryptoException`, `DateMalformedStringException`, `DependencyException`, `HPKEException`, `JsonException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`appCache`](../../../src/Protocol.php#L54-L57) +#### [`appCache`](../../../src/Protocol.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -409,7 +409,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Protocol.php#L64-L87) +#### [`table`](../../../src/Protocol.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -419,7 +419,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Protocol.php#L89-L92) +#### [`injectConfig`](../../../src/Protocol.php#L81-L84) Returns `void` @@ -427,13 +427,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Protocol.php#L97-L107) +#### [`config`](../../../src/Protocol.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`parseUrlHost`](../../../src/Protocol.php#L136-L143) +#### [`parseUrlHost`](../../../src/Protocol.php#L128-L135) static · Returns `?string` @@ -441,7 +441,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Protocol.php#L151-L157) +#### [`assertArray`](../../../src/Protocol.php#L143-L149) static · Returns `array` @@ -451,7 +451,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Protocol.php#L162-L168) +#### [`assertString`](../../../src/Protocol.php#L154-L160) static · Returns `string` @@ -461,7 +461,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Protocol.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Protocol.php#L162-L171) static · Returns `?string` @@ -469,7 +469,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Protocol.php#L184-L193) +#### [`assertInt`](../../../src/Protocol.php#L176-L185) static · Returns `int` @@ -479,7 +479,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Protocol.php#L200-L210) +#### [`rowToStringArray`](../../../src/Protocol.php#L192-L202) static · Returns `array` @@ -489,7 +489,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Protocol.php#L216-L226) +#### [`decryptedString`](../../../src/Protocol.php#L208-L218) static · Returns `string` @@ -500,7 +500,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Protocol.php#L233-L243) +#### [`blindIndexValue`](../../../src/Protocol.php#L225-L235) static · Returns `string` @@ -509,7 +509,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Protocol.php#L16-L19) +#### [`jsonDecode`](../../../src/Protocol.php#L15-L18) static · Returns `array` @@ -519,7 +519,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Protocol.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Protocol.php#L23-L26) static · Returns `stdClass` @@ -529,7 +529,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Protocol.php#L33-L39) +#### [`jsonEncode`](../../../src/Protocol.php#L32-L38) static · Returns `string` @@ -824,7 +824,7 @@ Returns `void` **Throws:** `DependencyException`, `SodiumException` -#### [`appCache`](../../../src/Table.php#L54-L57) +#### [`appCache`](../../../src/Table.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -835,7 +835,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Table.php#L64-L87) +#### [`table`](../../../src/Table.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -845,7 +845,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Table.php#L89-L92) +#### [`injectConfig`](../../../src/Table.php#L81-L84) Returns `void` @@ -853,13 +853,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Table.php#L97-L107) +#### [`config`](../../../src/Table.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Table.php#L112-L116) +#### [`setWebFinger`](../../../src/Table.php#L104-L108) Returns `self` @@ -869,7 +869,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Table.php#L123-L130) +#### [`webfinger`](../../../src/Table.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -879,7 +879,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Table.php#L136-L143) +#### [`parseUrlHost`](../../../src/Table.php#L128-L135) static · Returns `?string` @@ -887,7 +887,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Table.php#L151-L157) +#### [`assertArray`](../../../src/Table.php#L143-L149) static · Returns `array` @@ -897,7 +897,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Table.php#L162-L168) +#### [`assertString`](../../../src/Table.php#L154-L160) static · Returns `string` @@ -907,7 +907,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Table.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Table.php#L162-L171) static · Returns `?string` @@ -915,7 +915,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Table.php#L184-L193) +#### [`assertInt`](../../../src/Table.php#L176-L185) static · Returns `int` @@ -925,7 +925,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Table.php#L200-L210) +#### [`rowToStringArray`](../../../src/Table.php#L192-L202) static · Returns `array` @@ -935,7 +935,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Table.php#L216-L226) +#### [`decryptedString`](../../../src/Table.php#L208-L218) static · Returns `string` @@ -946,7 +946,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Table.php#L233-L243) +#### [`blindIndexValue`](../../../src/Table.php#L225-L235) static · Returns `string` @@ -955,7 +955,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Table.php#L16-L19) +#### [`jsonDecode`](../../../src/Table.php#L15-L18) static · Returns `array` @@ -965,7 +965,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Table.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Table.php#L23-L26) static · Returns `stdClass` @@ -975,7 +975,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Table.php#L33-L39) +#### [`jsonEncode`](../../../src/Table.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/dependency.md b/docs/reference/classes/dependency.md index 33ca073..aff4e26 100644 --- a/docs/reference/classes/dependency.md +++ b/docs/reference/classes/dependency.md @@ -63,13 +63,13 @@ Returns `void` ### Methods -#### [`__construct`](../../../src/Dependency/InjectConfigStrategy.php#L24-L31) +#### [`__construct`](../../../src/Dependency/InjectConfigStrategy.php#L21-L28) Returns `void` **Throws:** `DependencyException` -#### [`invokeRouteCallable`](../../../src/Dependency/InjectConfigStrategy.php#L37-L64) +#### [`invokeRouteCallable`](../../../src/Dependency/InjectConfigStrategy.php#L34-L61) Returns `Psr\Http\Message\ResponseInterface` @@ -122,11 +122,11 @@ Extends the CipherSweet EncryptedRow class to support key-wrapping ### Methods -#### [`getWrappedColumnNames`](../../../src/Dependency/WrappedEncryptedRow.php#L37-L40) +#### [`getWrappedColumnNames`](../../../src/Dependency/WrappedEncryptedRow.php#L36-L39) Returns `array` -#### [`addField`](../../../src/Dependency/WrappedEncryptedRow.php#L53-L65) +#### [`addField`](../../../src/Dependency/WrappedEncryptedRow.php#L52-L64) Returns `static` @@ -142,7 +142,7 @@ Define a field that will be encrypted. - `$autoBindContext`: `bool` = false - `$wrappedKeyColumnName`: `?string` = null -#### [`getExtensionKey`](../../../src/Dependency/WrappedEncryptedRow.php#L73-L76) +#### [`getExtensionKey`](../../../src/Dependency/WrappedEncryptedRow.php#L72-L75) Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` @@ -150,7 +150,7 @@ Get the key used to encrypt/decrypt the field symmetric key. **Throws:** `CipherSweetException`, `CryptoOperationException` -#### [`wrapKey`](../../../src/Dependency/WrappedEncryptedRow.php#L82-L90) +#### [`wrapKey`](../../../src/Dependency/WrappedEncryptedRow.php#L81-L89) Returns `string` @@ -161,7 +161,7 @@ Returns `string` **Throws:** `CipherSweetException`, `CryptoOperationException` -#### [`unwrapKey`](../../../src/Dependency/WrappedEncryptedRow.php#L96-L109) +#### [`unwrapKey`](../../../src/Dependency/WrappedEncryptedRow.php#L95-L108) Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` @@ -172,7 +172,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` **Throws:** `CipherSweetException`, `CryptoOperationException` -#### [`wrapBeforeEncrypt`](../../../src/Dependency/WrappedEncryptedRow.php#L121-L143) +#### [`wrapBeforeEncrypt`](../../../src/Dependency/WrappedEncryptedRow.php#L120-L142) **API** · Returns `array` @@ -183,11 +183,11 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` **Throws:** `CipherSweetException`, `CryptoOperationException` -#### [`purgeWrapKeyCache`](../../../src/Dependency/WrappedEncryptedRow.php#L149-L153) +#### [`purgeWrapKeyCache`](../../../src/Dependency/WrappedEncryptedRow.php#L148-L152) **API** · Returns `static` -#### [`addBooleanField`](../../../src/Dependency/WrappedEncryptedRow.php#L180-L193) +#### [`addBooleanField`](../../../src/Dependency/WrappedEncryptedRow.php#L179-L192) **API** · Returns `static` @@ -200,7 +200,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addFloatField`](../../../src/Dependency/WrappedEncryptedRow.php#L199-L212) +#### [`addFloatField`](../../../src/Dependency/WrappedEncryptedRow.php#L198-L211) **API** · Returns `static` @@ -213,7 +213,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addIntegerField`](../../../src/Dependency/WrappedEncryptedRow.php#L218-L231) +#### [`addIntegerField`](../../../src/Dependency/WrappedEncryptedRow.php#L217-L230) **API** · Returns `static` @@ -226,7 +226,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addOptionalBooleanField`](../../../src/Dependency/WrappedEncryptedRow.php#L237-L250) +#### [`addOptionalBooleanField`](../../../src/Dependency/WrappedEncryptedRow.php#L236-L249) **API** · Returns `static` @@ -239,7 +239,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addOptionalFloatField`](../../../src/Dependency/WrappedEncryptedRow.php#L256-L269) +#### [`addOptionalFloatField`](../../../src/Dependency/WrappedEncryptedRow.php#L255-L268) **API** · Returns `static` @@ -252,7 +252,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addOptionalIntegerField`](../../../src/Dependency/WrappedEncryptedRow.php#L275-L288) +#### [`addOptionalIntegerField`](../../../src/Dependency/WrappedEncryptedRow.php#L274-L287) **API** · Returns `static` @@ -265,7 +265,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addOptionalTextField`](../../../src/Dependency/WrappedEncryptedRow.php#L294-L307) +#### [`addOptionalTextField`](../../../src/Dependency/WrappedEncryptedRow.php#L293-L306) **API** · Returns `static` @@ -278,7 +278,7 @@ Returns `ParagonIE\CipherSweet\Backend\Key\SymmetricKey` - `$wrappedKeyColumnName`: `?string` = null - `$autoBindContext`: `bool` = false -#### [`addTextField`](../../../src/Dependency/WrappedEncryptedRow.php#L313-L326) +#### [`addTextField`](../../../src/Dependency/WrappedEncryptedRow.php#L312-L325) **API** · Returns `static` diff --git a/docs/reference/classes/middleware.md b/docs/reference/classes/middleware.md index d06399a..5e0756d 100644 --- a/docs/reference/classes/middleware.md +++ b/docs/reference/classes/middleware.md @@ -18,7 +18,7 @@ Namespace: `FediE2EE\PKDServer\Middleware` ### Methods -#### [`__construct`](../../../src/Middleware/RateLimitMiddleware.php#L25-L30) +#### [`__construct`](../../../src/Middleware/RateLimitMiddleware.php#L28-L33) Returns `void` @@ -26,11 +26,11 @@ Returns `void` - `$config`: `?FediE2EE\PKDServer\ServerConfig` = null -#### [`getConfig`](../../../src/Middleware/RateLimitMiddleware.php#L32-L38) +#### [`getConfig`](../../../src/Middleware/RateLimitMiddleware.php#L35-L41) Returns `FediE2EE\PKDServer\ServerConfig` -#### [`process`](../../../src/Middleware/RateLimitMiddleware.php#L56-L101) +#### [`process`](../../../src/Middleware/RateLimitMiddleware.php#L59-L104) Returns `Psr\Http\Message\ResponseInterface` diff --git a/docs/reference/classes/protocol.md b/docs/reference/classes/protocol.md index 7aed5ed..476203b 100644 --- a/docs/reference/classes/protocol.md +++ b/docs/reference/classes/protocol.md @@ -26,7 +26,7 @@ Namespace: `FediE2EE\PKDServer\Protocol` ### Methods -#### [`__construct`](../../../src/Protocol/KeyWrapping.php#L56-L62) +#### [`__construct`](../../../src/Protocol/KeyWrapping.php#L50-L56) Returns `void` @@ -36,7 +36,7 @@ Returns `void` **Throws:** `DependencyException` -#### [`rewrapSymmetricKeys`](../../../src/Protocol/KeyWrapping.php#L76-L106) +#### [`rewrapSymmetricKeys`](../../../src/Protocol/KeyWrapping.php#L70-L100) Returns `void` @@ -49,7 +49,7 @@ Initiate a rewrapping of the symmetric keys associated with a record. **Throws:** `CacheException`, `CryptoException`, `DateMalformedStringException`, `DependencyException`, `HPKEException`, `JsonException`, `SodiumException`, `TableException` -#### [`retrieveLocalWrappedKeys`](../../../src/Protocol/KeyWrapping.php#L113-L124) +#### [`retrieveLocalWrappedKeys`](../../../src/Protocol/KeyWrapping.php#L107-L118) Returns `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` @@ -59,7 +59,7 @@ Returns `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` **Throws:** `HPKEException`, `JsonException`, `TableException` -#### [`hpkeWrapSymmetricKeys`](../../../src/Protocol/KeyWrapping.php#L126-L132) +#### [`hpkeWrapSymmetricKeys`](../../../src/Protocol/KeyWrapping.php#L120-L126) Returns `string` @@ -67,7 +67,7 @@ Returns `string` - `$keyMap`: `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` -#### [`hpkeUnwrap`](../../../src/Protocol/KeyWrapping.php#L137-L141) +#### [`hpkeUnwrap`](../../../src/Protocol/KeyWrapping.php#L131-L135) Returns `string` @@ -77,7 +77,7 @@ Returns `string` **Throws:** `HPKEException` -#### [`serializeKeyMap`](../../../src/Protocol/KeyWrapping.php#L146-L160) +#### [`serializeKeyMap`](../../../src/Protocol/KeyWrapping.php#L140-L154) Returns `string` @@ -87,7 +87,7 @@ Returns `string` **Throws:** `BaseJsonException` -#### [`deserializeKeyMap`](../../../src/Protocol/KeyWrapping.php#L165-L179) +#### [`deserializeKeyMap`](../../../src/Protocol/KeyWrapping.php#L159-L173) Returns `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` @@ -97,7 +97,7 @@ Returns `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` **Throws:** `JsonException` -#### [`decryptAndGetRewrapped`](../../../src/Protocol/KeyWrapping.php#L196-L225) +#### [`decryptAndGetRewrapped`](../../../src/Protocol/KeyWrapping.php#L190-L219) Returns `array` @@ -112,7 +112,7 @@ Usage: **Throws:** `BundleException`, `CryptoException`, `DependencyException`, `HPKEException`, `InputException`, `InvalidArgumentException`, `JsonException`, `SodiumException` -#### [`unwrapLocalMessage`](../../../src/Protocol/KeyWrapping.php#L235-L242) +#### [`unwrapLocalMessage`](../../../src/Protocol/KeyWrapping.php#L229-L236) Returns `array` @@ -123,7 +123,7 @@ Returns `array` **Throws:** `BundleException`, `CryptoException`, `HPKEException`, `InputException`, `JsonException` -#### [`getRewrappedFor`](../../../src/Protocol/KeyWrapping.php#L248-L279) +#### [`getRewrappedFor`](../../../src/Protocol/KeyWrapping.php#L242-L273) Returns `array` @@ -133,7 +133,7 @@ Returns `array` **Throws:** `InputException` -#### [`appCache`](../../../src/Protocol/KeyWrapping.php#L54-L57) +#### [`appCache`](../../../src/Protocol/KeyWrapping.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -144,7 +144,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Protocol/KeyWrapping.php#L64-L87) +#### [`table`](../../../src/Protocol/KeyWrapping.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -154,7 +154,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Protocol/KeyWrapping.php#L89-L92) +#### [`injectConfig`](../../../src/Protocol/KeyWrapping.php#L81-L84) Returns `void` @@ -162,13 +162,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Protocol/KeyWrapping.php#L97-L107) +#### [`config`](../../../src/Protocol/KeyWrapping.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Protocol/KeyWrapping.php#L112-L116) +#### [`setWebFinger`](../../../src/Protocol/KeyWrapping.php#L104-L108) Returns `self` @@ -178,7 +178,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Protocol/KeyWrapping.php#L123-L130) +#### [`webfinger`](../../../src/Protocol/KeyWrapping.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -188,7 +188,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Protocol/KeyWrapping.php#L136-L143) +#### [`parseUrlHost`](../../../src/Protocol/KeyWrapping.php#L128-L135) static · Returns `?string` @@ -196,7 +196,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Protocol/KeyWrapping.php#L151-L157) +#### [`assertArray`](../../../src/Protocol/KeyWrapping.php#L143-L149) static · Returns `array` @@ -206,7 +206,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Protocol/KeyWrapping.php#L162-L168) +#### [`assertString`](../../../src/Protocol/KeyWrapping.php#L154-L160) static · Returns `string` @@ -216,7 +216,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Protocol/KeyWrapping.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Protocol/KeyWrapping.php#L162-L171) static · Returns `?string` @@ -224,7 +224,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Protocol/KeyWrapping.php#L184-L193) +#### [`assertInt`](../../../src/Protocol/KeyWrapping.php#L176-L185) static · Returns `int` @@ -234,7 +234,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Protocol/KeyWrapping.php#L200-L210) +#### [`rowToStringArray`](../../../src/Protocol/KeyWrapping.php#L192-L202) static · Returns `array` @@ -244,7 +244,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Protocol/KeyWrapping.php#L216-L226) +#### [`decryptedString`](../../../src/Protocol/KeyWrapping.php#L208-L218) static · Returns `string` @@ -255,7 +255,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Protocol/KeyWrapping.php#L233-L243) +#### [`blindIndexValue`](../../../src/Protocol/KeyWrapping.php#L225-L235) static · Returns `string` @@ -264,7 +264,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Protocol/KeyWrapping.php#L16-L19) +#### [`jsonDecode`](../../../src/Protocol/KeyWrapping.php#L15-L18) static · Returns `array` @@ -274,7 +274,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Protocol/KeyWrapping.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Protocol/KeyWrapping.php#L23-L26) static · Returns `stdClass` @@ -284,7 +284,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Protocol/KeyWrapping.php#L33-L39) +#### [`jsonEncode`](../../../src/Protocol/KeyWrapping.php#L32-L38) static · Returns `string` @@ -424,7 +424,7 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`__construct`](../../../src/Protocol/Payload.php#L18-L22) +#### [`__construct`](../../../src/Protocol/Payload.php#L17-L21) Returns `void` @@ -434,23 +434,23 @@ Returns `void` - `$keyMap`: `FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap` - `$rawJson`: `string` -#### [`decrypt`](../../../src/Protocol/Payload.php#L24-L30) +#### [`decrypt`](../../../src/Protocol/Payload.php#L23-L29) Returns `FediE2EE\PKD\Crypto\Protocol\ProtocolMessageInterface` -#### [`decode`](../../../src/Protocol/Payload.php#L36-L39) +#### [`decode`](../../../src/Protocol/Payload.php#L35-L38) Returns `array` **Throws:** `JsonException` -#### [`getMerkleTreePayload`](../../../src/Protocol/Payload.php#L44-L58) +#### [`getMerkleTreePayload`](../../../src/Protocol/Payload.php#L43-L57) Returns `string` **Throws:** `JsonException` -#### [`jsonDecode`](../../../src/Protocol/Payload.php#L16-L19) +#### [`jsonDecode`](../../../src/Protocol/Payload.php#L15-L18) static · Returns `array` @@ -460,7 +460,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Protocol/Payload.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Protocol/Payload.php#L23-L26) static · Returns `stdClass` @@ -470,7 +470,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Protocol/Payload.php#L33-L39) +#### [`jsonEncode`](../../../src/Protocol/Payload.php#L32-L38) static · Returns `string` @@ -499,7 +499,7 @@ static · Returns `string` ### Methods -#### [`__construct`](../../../src/Protocol/RewrapConfig.php#L23-L26) +#### [`__construct`](../../../src/Protocol/RewrapConfig.php#L20-L23) Returns `void` @@ -508,7 +508,7 @@ Returns `void` - `$cs`: `string` - `$encapsKey`: `string` -#### [`from`](../../../src/Protocol/RewrapConfig.php#L31-L42) +#### [`from`](../../../src/Protocol/RewrapConfig.php#L28-L39) static · Returns `self` @@ -519,7 +519,7 @@ static · Returns `self` **Throws:** `DependencyException` -#### [`fromJson`](../../../src/Protocol/RewrapConfig.php#L44-L57) +#### [`fromJson`](../../../src/Protocol/RewrapConfig.php#L41-L54) static · Returns `self` @@ -527,19 +527,19 @@ static · Returns `self` - `$json`: `string` -#### [`jsonSerialize`](../../../src/Protocol/RewrapConfig.php#L63-L69) +#### [`jsonSerialize`](../../../src/Protocol/RewrapConfig.php#L60-L66) Returns `array` **Attributes:** `#[Override]` -#### [`getCipherSuite`](../../../src/Protocol/RewrapConfig.php#L74-L77) +#### [`getCipherSuite`](../../../src/Protocol/RewrapConfig.php#L71-L74) Returns `ParagonIE\HPKE\HPKE` **Throws:** `HPKEException` -#### [`getEncapsKey`](../../../src/Protocol/RewrapConfig.php#L84-L91) +#### [`getEncapsKey`](../../../src/Protocol/RewrapConfig.php#L81-L88) Returns `ParagonIE\HPKE\Interfaces\EncapsKeyInterface` diff --git a/docs/reference/classes/ratelimit-storage.md b/docs/reference/classes/ratelimit-storage.md index 412afb9..8ad5683 100644 --- a/docs/reference/classes/ratelimit-storage.md +++ b/docs/reference/classes/ratelimit-storage.md @@ -84,7 +84,7 @@ Returns `string` **Throws:** `SodiumException` -#### [`jsonDecode`](../../../src/RateLimit/Storage/Filesystem.php#L16-L19) +#### [`jsonDecode`](../../../src/RateLimit/Storage/Filesystem.php#L15-L18) static · Returns `array` @@ -94,7 +94,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RateLimit/Storage/Filesystem.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RateLimit/Storage/Filesystem.php#L23-L26) static · Returns `stdClass` @@ -104,7 +104,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RateLimit/Storage/Filesystem.php#L33-L39) +#### [`jsonEncode`](../../../src/RateLimit/Storage/Filesystem.php#L32-L38) static · Returns `string` @@ -238,7 +238,7 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`__construct`](../../../src/RateLimit/Storage/Redis.php#L31-L39) +#### [`__construct`](../../../src/RateLimit/Storage/Redis.php#L28-L36) Returns `void` @@ -249,7 +249,7 @@ Returns `void` **Throws:** `DependencyException` -#### [`get`](../../../src/RateLimit/Storage/Redis.php#L47-L55) +#### [`get`](../../../src/RateLimit/Storage/Redis.php#L44-L52) Returns `?FediE2EE\PKDServer\RateLimit\RateLimitData` @@ -262,7 +262,7 @@ Returns `?FediE2EE\PKDServer\RateLimit\RateLimitData` **Throws:** `InputException`, `JsonException`, `SodiumException` -#### [`set`](../../../src/RateLimit/Storage/Redis.php#L62-L67) +#### [`set`](../../../src/RateLimit/Storage/Redis.php#L59-L64) Returns `bool` @@ -276,7 +276,7 @@ Returns `bool` **Throws:** `JsonException`, `SodiumException` -#### [`delete`](../../../src/RateLimit/Storage/Redis.php#L73-L78) +#### [`delete`](../../../src/RateLimit/Storage/Redis.php#L70-L75) Returns `bool` @@ -289,7 +289,7 @@ Returns `bool` **Throws:** `SodiumException` -#### [`jsonDecode`](../../../src/RateLimit/Storage/Redis.php#L16-L19) +#### [`jsonDecode`](../../../src/RateLimit/Storage/Redis.php#L15-L18) static · Returns `array` @@ -299,7 +299,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RateLimit/Storage/Redis.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RateLimit/Storage/Redis.php#L23-L26) static · Returns `stdClass` @@ -309,7 +309,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RateLimit/Storage/Redis.php#L33-L39) +#### [`jsonEncode`](../../../src/RateLimit/Storage/Redis.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/ratelimit.md b/docs/reference/classes/ratelimit.md index 5f057e2..1b2d738 100644 --- a/docs/reference/classes/ratelimit.md +++ b/docs/reference/classes/ratelimit.md @@ -21,7 +21,7 @@ Namespace: `FediE2EE\PKDServer\RateLimit` ### Methods -#### [`__construct`](../../../src/RateLimit/DefaultRateLimiting.php#L42-L52) +#### [`__construct`](../../../src/RateLimit/DefaultRateLimiting.php#L39-L49) Returns `void` @@ -37,25 +37,25 @@ Returns `void` - `$shouldEnforceActor`: `bool` = true - `$maxTimeouts`: `array` = [] -#### [`getStorage`](../../../src/RateLimit/DefaultRateLimiting.php#L55-L58) +#### [`getStorage`](../../../src/RateLimit/DefaultRateLimiting.php#L52-L55) Returns `FediE2EE\PKDServer\Interfaces\RateLimitStorageInterface` **Attributes:** `#[Override]` -#### [`isEnabled`](../../../src/RateLimit/DefaultRateLimiting.php#L61-L64) +#### [`isEnabled`](../../../src/RateLimit/DefaultRateLimiting.php#L58-L61) Returns `bool` **Attributes:** `#[Override]` -#### [`getBaseDelay`](../../../src/RateLimit/DefaultRateLimiting.php#L67-L70) +#### [`getBaseDelay`](../../../src/RateLimit/DefaultRateLimiting.php#L64-L67) Returns `int` **Attributes:** `#[Override]` -#### [`withBaseDelay`](../../../src/RateLimit/DefaultRateLimiting.php#L72-L77) +#### [`withBaseDelay`](../../../src/RateLimit/DefaultRateLimiting.php#L69-L74) Returns `static` @@ -63,7 +63,7 @@ Returns `static` - `$baseDelay`: `int` -#### [`withMaxTimeout`](../../../src/RateLimit/DefaultRateLimiting.php#L79-L90) +#### [`withMaxTimeout`](../../../src/RateLimit/DefaultRateLimiting.php#L76-L87) Returns `static` @@ -72,7 +72,7 @@ Returns `static` - `$key`: `string` - `$interval`: `?DateInterval` = null -#### [`getRequestSubnet`](../../../src/RateLimit/DefaultRateLimiting.php#L93-L102) +#### [`getRequestSubnet`](../../../src/RateLimit/DefaultRateLimiting.php#L90-L99) Returns `string` @@ -82,7 +82,7 @@ Returns `string` - `$request`: `Psr\Http\Message\ServerRequestInterface` -#### [`shouldEnforce`](../../../src/RateLimit/DefaultRateLimiting.php#L108-L116) +#### [`shouldEnforce`](../../../src/RateLimit/DefaultRateLimiting.php#L105-L113) Returns `bool` @@ -94,7 +94,7 @@ Returns `bool` **Throws:** `DependencyException` -#### [`enforceRateLimit`](../../../src/RateLimit/DefaultRateLimiting.php#L123-L170) +#### [`enforceRateLimit`](../../../src/RateLimit/DefaultRateLimiting.php#L120-L167) Returns `void` @@ -107,7 +107,7 @@ Returns `void` **Throws:** `RateLimitException`, `DateMalformedIntervalStringException` -#### [`getCooledDown`](../../../src/RateLimit/DefaultRateLimiting.php#L178-L196) +#### [`getCooledDown`](../../../src/RateLimit/DefaultRateLimiting.php#L175-L193) Returns `FediE2EE\PKDServer\RateLimit\RateLimitData` @@ -121,7 +121,7 @@ Reduce the cooldown until zero or the cooldown window is in the future: **Throws:** `DateMalformedIntervalStringException` -#### [`processTTL`](../../../src/RateLimit/DefaultRateLimiting.php#L204-L217) +#### [`processTTL`](../../../src/RateLimit/DefaultRateLimiting.php#L201-L214) Returns `int` @@ -131,7 +131,7 @@ Collapse multiple types into a number of seconds. - `$ttl`: `DateInterval|int|null` -#### [`getPenaltyTime`](../../../src/RateLimit/DefaultRateLimiting.php#L222-L247) +#### [`getPenaltyTime`](../../../src/RateLimit/DefaultRateLimiting.php#L219-L244) Returns `?DateTimeImmutable` @@ -142,7 +142,7 @@ Returns `?DateTimeImmutable` **Throws:** `DateMalformedIntervalStringException` -#### [`getIntervalFromFailureCount`](../../../src/RateLimit/DefaultRateLimiting.php#L252-L265) +#### [`getIntervalFromFailureCount`](../../../src/RateLimit/DefaultRateLimiting.php#L249-L262) Returns `DateInterval` @@ -152,7 +152,7 @@ Returns `DateInterval` **Throws:** `DateMalformedIntervalStringException` -#### [`recordPenalty`](../../../src/RateLimit/DefaultRateLimiting.php#L271-L280) +#### [`recordPenalty`](../../../src/RateLimit/DefaultRateLimiting.php#L268-L277) Returns `void` @@ -165,7 +165,7 @@ Returns `void` **Throws:** `DateMalformedIntervalStringException` -#### [`increaseFailures`](../../../src/RateLimit/DefaultRateLimiting.php#L285-L299) +#### [`increaseFailures`](../../../src/RateLimit/DefaultRateLimiting.php#L282-L296) Returns `FediE2EE\PKDServer\RateLimit\RateLimitData` @@ -271,7 +271,7 @@ Returns `?string` ### Methods -#### [`__construct`](../../../src/RateLimit/RateLimitData.php#L24-L37) +#### [`__construct`](../../../src/RateLimit/RateLimitData.php#L23-L36) Returns `void` @@ -281,7 +281,7 @@ Returns `void` - `$lastFailTime`: `?DateTimeImmutable` = null - `$cooldownStart`: `?DateTimeImmutable` = null -#### [`fromJson`](../../../src/RateLimit/RateLimitData.php#L44-L74) +#### [`fromJson`](../../../src/RateLimit/RateLimitData.php#L43-L73) static · Returns `self` @@ -291,21 +291,21 @@ static · Returns `self` **Throws:** `BaseJsonException`, `DateMalformedStringException`, `InputException` -#### [`getLastFailTime`](../../../src/RateLimit/RateLimitData.php#L76-L79) +#### [`getLastFailTime`](../../../src/RateLimit/RateLimitData.php#L75-L78) Returns `DateTimeImmutable` -#### [`getCooldownStart`](../../../src/RateLimit/RateLimitData.php#L81-L84) +#### [`getCooldownStart`](../../../src/RateLimit/RateLimitData.php#L80-L83) Returns `DateTimeImmutable` -#### [`jsonSerialize`](../../../src/RateLimit/RateLimitData.php#L90-L97) +#### [`jsonSerialize`](../../../src/RateLimit/RateLimitData.php#L89-L96) Returns `array` **Attributes:** `#[Override]` -#### [`failure`](../../../src/RateLimit/RateLimitData.php#L99-L106) +#### [`failure`](../../../src/RateLimit/RateLimitData.php#L98-L105) Returns `self` @@ -313,7 +313,7 @@ Returns `self` - `$cooldownStart`: `?DateTimeImmutable` = null -#### [`withCooldownStart`](../../../src/RateLimit/RateLimitData.php#L108-L115) +#### [`withCooldownStart`](../../../src/RateLimit/RateLimitData.php#L107-L114) Returns `self` @@ -321,7 +321,7 @@ Returns `self` - `$cooldownStart`: `DateTimeImmutable` -#### [`withFailures`](../../../src/RateLimit/RateLimitData.php#L117-L124) +#### [`withFailures`](../../../src/RateLimit/RateLimitData.php#L116-L123) Returns `self` @@ -329,7 +329,7 @@ Returns `self` - `$failures`: `int` -#### [`withLastFailTime`](../../../src/RateLimit/RateLimitData.php#L126-L133) +#### [`withLastFailTime`](../../../src/RateLimit/RateLimitData.php#L125-L132) Returns `self` @@ -337,7 +337,7 @@ Returns `self` - `$lastFailTime`: `DateTimeImmutable` -#### [`jsonDecode`](../../../src/RateLimit/RateLimitData.php#L16-L19) +#### [`jsonDecode`](../../../src/RateLimit/RateLimitData.php#L15-L18) static · Returns `array` @@ -347,7 +347,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RateLimit/RateLimitData.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RateLimit/RateLimitData.php#L23-L26) static · Returns `stdClass` @@ -357,7 +357,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RateLimit/RateLimitData.php#L33-L39) +#### [`jsonEncode`](../../../src/RateLimit/RateLimitData.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/requesthandlers-activitypub.md b/docs/reference/classes/requesthandlers-activitypub.md index 2c3a334..15a0654 100644 --- a/docs/reference/classes/requesthandlers-activitypub.md +++ b/docs/reference/classes/requesthandlers-activitypub.md @@ -28,7 +28,7 @@ Namespace: `FediE2EE\PKDServer\RequestHandlers\ActivityPub` ### Methods -#### [`handle`](../../../src/RequestHandlers/ActivityPub/Finger.php#L45-L91) +#### [`handle`](../../../src/RequestHandlers/ActivityPub/Finger.php#L43-L89) Returns `Psr\Http\Message\ResponseInterface` @@ -40,7 +40,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `NotImplementedException`, `SodiumException` -#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/Finger.php#L41-L64) +#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/Finger.php#L39-L62) Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` @@ -50,7 +50,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` **Throws:** `ActivityPubException`, `CertaintyException`, `CryptoException`, `DependencyException`, `FetchException`, `HttpSignatureException`, `InvalidArgumentException`, `NotImplementedException`, `SodiumException` -#### [`appCache`](../../../src/RequestHandlers/ActivityPub/Finger.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/ActivityPub/Finger.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -61,7 +61,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/ActivityPub/Finger.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/ActivityPub/Finger.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -71,7 +71,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/Finger.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/Finger.php#L81-L84) Returns `void` @@ -79,13 +79,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/ActivityPub/Finger.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/ActivityPub/Finger.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/Finger.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/Finger.php#L104-L108) Returns `self` @@ -95,7 +95,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/Finger.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/Finger.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -105,7 +105,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/Finger.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/Finger.php#L128-L135) static · Returns `?string` @@ -113,7 +113,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/Finger.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/Finger.php#L143-L149) static · Returns `array` @@ -123,7 +123,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/ActivityPub/Finger.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/ActivityPub/Finger.php#L154-L160) static · Returns `string` @@ -133,7 +133,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/Finger.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/Finger.php#L162-L171) static · Returns `?string` @@ -141,7 +141,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/Finger.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/Finger.php#L176-L185) static · Returns `int` @@ -151,7 +151,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/Finger.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/Finger.php#L192-L202) static · Returns `array` @@ -161,7 +161,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/Finger.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/Finger.php#L208-L218) static · Returns `string` @@ -172,7 +172,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/Finger.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/Finger.php#L225-L235) static · Returns `string` @@ -181,7 +181,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/Finger.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/Finger.php#L15-L18) static · Returns `array` @@ -191,7 +191,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/Finger.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/Finger.php#L23-L26) static · Returns `stdClass` @@ -201,7 +201,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/Finger.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/Finger.php#L32-L38) static · Returns `string` @@ -211,11 +211,11 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`time`](../../../src/RequestHandlers/ActivityPub/Finger.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/ActivityPub/Finger.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/Finger.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/Finger.php#L51-L59) Returns `string` @@ -225,7 +225,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/ActivityPub/Finger.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/ActivityPub/Finger.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -236,7 +236,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/Finger.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/Finger.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -248,7 +248,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/ActivityPub/Finger.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/ActivityPub/Finger.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -262,7 +262,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/ActivityPub/Finger.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/ActivityPub/Finger.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -313,7 +313,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `CertaintyException`, `CryptoException`, `DependencyException`, `InvalidArgumentException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L41-L64) +#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L39-L62) Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` @@ -323,7 +323,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` **Throws:** `ActivityPubException`, `CertaintyException`, `CryptoException`, `DependencyException`, `FetchException`, `HttpSignatureException`, `InvalidArgumentException`, `NotImplementedException`, `SodiumException` -#### [`appCache`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -334,7 +334,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -344,7 +344,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L81-L84) Returns `void` @@ -352,13 +352,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L104-L108) Returns `self` @@ -368,7 +368,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -378,7 +378,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L128-L135) static · Returns `?string` @@ -386,7 +386,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L143-L149) static · Returns `array` @@ -396,7 +396,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L154-L160) static · Returns `string` @@ -406,7 +406,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L162-L171) static · Returns `?string` @@ -414,7 +414,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L176-L185) static · Returns `int` @@ -424,7 +424,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L192-L202) static · Returns `array` @@ -434,7 +434,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L208-L218) static · Returns `string` @@ -445,7 +445,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L225-L235) static · Returns `string` @@ -454,7 +454,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L15-L18) static · Returns `array` @@ -464,7 +464,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L23-L26) static · Returns `stdClass` @@ -474,7 +474,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L32-L38) static · Returns `string` @@ -484,11 +484,11 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`time`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L51-L59) Returns `string` @@ -498,7 +498,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -509,7 +509,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -521,7 +521,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -535,7 +535,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/ActivityPub/Inbox.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -580,7 +580,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L41-L64) +#### [`getVerifiedStream`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L39-L62) Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` @@ -590,7 +590,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` **Throws:** `ActivityPubException`, `CertaintyException`, `CryptoException`, `DependencyException`, `FetchException`, `HttpSignatureException`, `InvalidArgumentException`, `NotImplementedException`, `SodiumException` -#### [`appCache`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -601,7 +601,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -611,7 +611,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L81-L84) Returns `void` @@ -619,13 +619,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L104-L108) Returns `self` @@ -635,7 +635,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -645,7 +645,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L128-L135) static · Returns `?string` @@ -653,7 +653,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L143-L149) static · Returns `array` @@ -663,7 +663,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L154-L160) static · Returns `string` @@ -673,7 +673,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L162-L171) static · Returns `?string` @@ -681,7 +681,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L176-L185) static · Returns `int` @@ -691,7 +691,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L192-L202) static · Returns `array` @@ -701,7 +701,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L208-L218) static · Returns `string` @@ -712,7 +712,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L225-L235) static · Returns `string` @@ -721,7 +721,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L15-L18) static · Returns `array` @@ -731,7 +731,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L23-L26) static · Returns `stdClass` @@ -741,7 +741,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L32-L38) static · Returns `string` @@ -751,11 +751,11 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`time`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L51-L59) Returns `string` @@ -765,7 +765,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -776,7 +776,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -788,7 +788,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -802,7 +802,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/ActivityPub/UserPage.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` diff --git a/docs/reference/classes/requesthandlers-api.md b/docs/reference/classes/requesthandlers-api.md index 6411e4f..6fbfbaa 100644 --- a/docs/reference/classes/requesthandlers-api.md +++ b/docs/reference/classes/requesthandlers-api.md @@ -75,11 +75,11 @@ Returns `bool` **Throws:** `DependencyException` -#### [`time`](../../../src/RequestHandlers/Api/Actor.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Actor.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Actor.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Actor.php#L51-L59) Returns `string` @@ -89,7 +89,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Actor.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Actor.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -100,7 +100,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Actor.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Actor.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -112,7 +112,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Actor.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Actor.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -126,7 +126,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Actor.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Actor.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -139,7 +139,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Actor.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Actor.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -150,7 +150,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Actor.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Actor.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -160,7 +160,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Actor.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Actor.php#L81-L84) Returns `void` @@ -168,13 +168,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Actor.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Actor.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Actor.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Actor.php#L104-L108) Returns `self` @@ -184,7 +184,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Actor.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Actor.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -194,7 +194,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Actor.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Actor.php#L128-L135) static · Returns `?string` @@ -202,7 +202,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Actor.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Actor.php#L143-L149) static · Returns `array` @@ -212,7 +212,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Actor.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Actor.php#L154-L160) static · Returns `string` @@ -222,7 +222,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Actor.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Actor.php#L162-L171) static · Returns `?string` @@ -230,7 +230,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Actor.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Actor.php#L176-L185) static · Returns `int` @@ -240,7 +240,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Actor.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Actor.php#L192-L202) static · Returns `array` @@ -250,7 +250,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Actor.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Actor.php#L208-L218) static · Returns `string` @@ -261,7 +261,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Actor.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Actor.php#L225-L235) static · Returns `string` @@ -270,7 +270,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Actor.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Actor.php#L15-L18) static · Returns `array` @@ -280,7 +280,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Actor.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Actor.php#L23-L26) static · Returns `stdClass` @@ -290,7 +290,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Actor.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Actor.php#L32-L38) static · Returns `string` @@ -338,7 +338,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `CacheException`, `CertaintyException`, `CryptoException`, `DependencyException`, `HPKEException`, `JsonException`, `NotImplementedException`, `ParserException`, `SodiumException`, `TableException`, `InvalidArgumentException` -#### [`getVerifiedStream`](../../../src/RequestHandlers/Api/BurnDown.php#L41-L64) +#### [`getVerifiedStream`](../../../src/RequestHandlers/Api/BurnDown.php#L39-L62) Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` @@ -348,7 +348,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` **Throws:** `ActivityPubException`, `CertaintyException`, `CryptoException`, `DependencyException`, `FetchException`, `HttpSignatureException`, `InvalidArgumentException`, `NotImplementedException`, `SodiumException` -#### [`appCache`](../../../src/RequestHandlers/Api/BurnDown.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/BurnDown.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -359,7 +359,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/BurnDown.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/BurnDown.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -369,7 +369,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/BurnDown.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/BurnDown.php#L81-L84) Returns `void` @@ -377,13 +377,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/BurnDown.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/BurnDown.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/BurnDown.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/BurnDown.php#L104-L108) Returns `self` @@ -393,7 +393,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/BurnDown.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/BurnDown.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -403,7 +403,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/BurnDown.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/BurnDown.php#L128-L135) static · Returns `?string` @@ -411,7 +411,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/BurnDown.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/BurnDown.php#L143-L149) static · Returns `array` @@ -421,7 +421,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/BurnDown.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/BurnDown.php#L154-L160) static · Returns `string` @@ -431,7 +431,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/BurnDown.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/BurnDown.php#L162-L171) static · Returns `?string` @@ -439,7 +439,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/BurnDown.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/BurnDown.php#L176-L185) static · Returns `int` @@ -449,7 +449,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/BurnDown.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/BurnDown.php#L192-L202) static · Returns `array` @@ -459,7 +459,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/BurnDown.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/BurnDown.php#L208-L218) static · Returns `string` @@ -470,7 +470,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/BurnDown.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/BurnDown.php#L225-L235) static · Returns `string` @@ -479,7 +479,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/BurnDown.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/BurnDown.php#L15-L18) static · Returns `array` @@ -489,7 +489,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/BurnDown.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/BurnDown.php#L23-L26) static · Returns `stdClass` @@ -499,7 +499,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/BurnDown.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/BurnDown.php#L32-L38) static · Returns `string` @@ -509,11 +509,11 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`time`](../../../src/RequestHandlers/Api/BurnDown.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/BurnDown.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/BurnDown.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/BurnDown.php#L51-L59) Returns `string` @@ -523,7 +523,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/BurnDown.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/BurnDown.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -534,7 +534,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/BurnDown.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/BurnDown.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -546,7 +546,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/BurnDown.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/BurnDown.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -560,7 +560,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/BurnDown.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/BurnDown.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -603,11 +603,11 @@ Returns `Psr\Http\Message\ResponseInterface` - `$request`: `Psr\Http\Message\ServerRequestInterface` -#### [`time`](../../../src/RequestHandlers/Api/Checkpoint.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Checkpoint.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Checkpoint.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Checkpoint.php#L51-L59) Returns `string` @@ -617,7 +617,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Checkpoint.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Checkpoint.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -628,7 +628,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Checkpoint.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Checkpoint.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -640,7 +640,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Checkpoint.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Checkpoint.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -654,7 +654,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Checkpoint.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Checkpoint.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -667,7 +667,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Checkpoint.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Checkpoint.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -678,7 +678,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Checkpoint.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Checkpoint.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -688,7 +688,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Checkpoint.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Checkpoint.php#L81-L84) Returns `void` @@ -696,13 +696,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Checkpoint.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Checkpoint.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Checkpoint.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Checkpoint.php#L104-L108) Returns `self` @@ -712,7 +712,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Checkpoint.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Checkpoint.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -722,7 +722,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Checkpoint.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Checkpoint.php#L128-L135) static · Returns `?string` @@ -730,7 +730,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Checkpoint.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Checkpoint.php#L143-L149) static · Returns `array` @@ -740,7 +740,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Checkpoint.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Checkpoint.php#L154-L160) static · Returns `string` @@ -750,7 +750,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Checkpoint.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Checkpoint.php#L162-L171) static · Returns `?string` @@ -758,7 +758,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Checkpoint.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Checkpoint.php#L176-L185) static · Returns `int` @@ -768,7 +768,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Checkpoint.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Checkpoint.php#L192-L202) static · Returns `array` @@ -778,7 +778,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Checkpoint.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Checkpoint.php#L208-L218) static · Returns `string` @@ -789,7 +789,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Checkpoint.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Checkpoint.php#L225-L235) static · Returns `string` @@ -798,7 +798,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Checkpoint.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Checkpoint.php#L15-L18) static · Returns `array` @@ -808,7 +808,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Checkpoint.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Checkpoint.php#L23-L26) static · Returns `stdClass` @@ -818,7 +818,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Checkpoint.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Checkpoint.php#L32-L38) static · Returns `string` @@ -860,11 +860,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/Extensions.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Extensions.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Extensions.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Extensions.php#L51-L59) Returns `string` @@ -874,7 +874,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Extensions.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Extensions.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -885,7 +885,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Extensions.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Extensions.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -897,7 +897,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Extensions.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Extensions.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -911,7 +911,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Extensions.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Extensions.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -924,7 +924,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Extensions.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Extensions.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -935,7 +935,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Extensions.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Extensions.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -945,7 +945,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Extensions.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Extensions.php#L81-L84) Returns `void` @@ -953,13 +953,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Extensions.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Extensions.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Extensions.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Extensions.php#L104-L108) Returns `self` @@ -969,7 +969,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Extensions.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Extensions.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -979,7 +979,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Extensions.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Extensions.php#L128-L135) static · Returns `?string` @@ -987,7 +987,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Extensions.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Extensions.php#L143-L149) static · Returns `array` @@ -997,7 +997,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Extensions.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Extensions.php#L154-L160) static · Returns `string` @@ -1007,7 +1007,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Extensions.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Extensions.php#L162-L171) static · Returns `?string` @@ -1015,7 +1015,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Extensions.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Extensions.php#L176-L185) static · Returns `int` @@ -1025,7 +1025,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Extensions.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Extensions.php#L192-L202) static · Returns `array` @@ -1035,7 +1035,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Extensions.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Extensions.php#L208-L218) static · Returns `string` @@ -1046,7 +1046,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Extensions.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Extensions.php#L225-L235) static · Returns `string` @@ -1055,7 +1055,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Extensions.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Extensions.php#L15-L18) static · Returns `array` @@ -1065,7 +1065,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Extensions.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Extensions.php#L23-L26) static · Returns `stdClass` @@ -1075,7 +1075,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Extensions.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Extensions.php#L32-L38) static · Returns `string` @@ -1105,13 +1105,13 @@ static · Returns `string` ### Methods -#### [`__construct`](../../../src/RequestHandlers/Api/GetAuxData.php#L55-L68) +#### [`__construct`](../../../src/RequestHandlers/Api/GetAuxData.php#L54-L67) Returns `void` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`handle`](../../../src/RequestHandlers/Api/GetAuxData.php#L89-L124) +#### [`handle`](../../../src/RequestHandlers/Api/GetAuxData.php#L88-L123) **API** · Returns `Psr\Http\Message\ResponseInterface` @@ -1123,11 +1123,11 @@ Returns `void` **Throws:** `ArrayKeyException`, `BaseJsonException`, `BlindIndexNotFoundException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `DateMalformedStringException`, `DependencyException`, `InvalidCiphertextException`, `JsonException`, `NotImplementedException`, `SodiumException`, `TableException` -#### [`time`](../../../src/RequestHandlers/Api/GetAuxData.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/GetAuxData.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/GetAuxData.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/GetAuxData.php#L51-L59) Returns `string` @@ -1137,7 +1137,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/GetAuxData.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/GetAuxData.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -1148,7 +1148,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/GetAuxData.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/GetAuxData.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -1160,7 +1160,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/GetAuxData.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/GetAuxData.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -1174,7 +1174,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/GetAuxData.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/GetAuxData.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -1187,7 +1187,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/GetAuxData.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/GetAuxData.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -1198,7 +1198,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/GetAuxData.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/GetAuxData.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -1208,7 +1208,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/GetAuxData.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/GetAuxData.php#L81-L84) Returns `void` @@ -1216,13 +1216,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/GetAuxData.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/GetAuxData.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/GetAuxData.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/GetAuxData.php#L104-L108) Returns `self` @@ -1232,7 +1232,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/GetAuxData.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/GetAuxData.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -1242,7 +1242,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/GetAuxData.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/GetAuxData.php#L128-L135) static · Returns `?string` @@ -1250,7 +1250,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/GetAuxData.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/GetAuxData.php#L143-L149) static · Returns `array` @@ -1260,7 +1260,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/GetAuxData.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/GetAuxData.php#L154-L160) static · Returns `string` @@ -1270,7 +1270,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/GetAuxData.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/GetAuxData.php#L162-L171) static · Returns `?string` @@ -1278,7 +1278,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/GetAuxData.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/GetAuxData.php#L176-L185) static · Returns `int` @@ -1288,7 +1288,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/GetAuxData.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/GetAuxData.php#L192-L202) static · Returns `array` @@ -1298,7 +1298,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/GetAuxData.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/GetAuxData.php#L208-L218) static · Returns `string` @@ -1309,7 +1309,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/GetAuxData.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/GetAuxData.php#L225-L235) static · Returns `string` @@ -1318,7 +1318,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/GetAuxData.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/GetAuxData.php#L15-L18) static · Returns `array` @@ -1328,7 +1328,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/GetAuxData.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/GetAuxData.php#L23-L26) static · Returns `stdClass` @@ -1338,7 +1338,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/GetAuxData.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/GetAuxData.php#L32-L38) static · Returns `string` @@ -1368,13 +1368,13 @@ static · Returns `string` ### Methods -#### [`__construct`](../../../src/RequestHandlers/Api/GetKey.php#L55-L68) +#### [`__construct`](../../../src/RequestHandlers/Api/GetKey.php#L54-L67) Returns `void` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`handle`](../../../src/RequestHandlers/Api/GetKey.php#L89-L125) +#### [`handle`](../../../src/RequestHandlers/Api/GetKey.php#L88-L124) **API** · Returns `Psr\Http\Message\ResponseInterface` @@ -1386,11 +1386,11 @@ Returns `void` **Throws:** `ArrayKeyException`, `BaseJsonException`, `BlindIndexNotFoundException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `DateMalformedStringException`, `DependencyException`, `InvalidCiphertextException`, `JsonException`, `NotImplementedException`, `SodiumException`, `TableException` -#### [`time`](../../../src/RequestHandlers/Api/GetKey.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/GetKey.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/GetKey.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/GetKey.php#L51-L59) Returns `string` @@ -1400,7 +1400,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/GetKey.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/GetKey.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -1411,7 +1411,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/GetKey.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/GetKey.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -1423,7 +1423,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/GetKey.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/GetKey.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -1437,7 +1437,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/GetKey.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/GetKey.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -1450,7 +1450,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/GetKey.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/GetKey.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -1461,7 +1461,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/GetKey.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/GetKey.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -1471,7 +1471,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/GetKey.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/GetKey.php#L81-L84) Returns `void` @@ -1479,13 +1479,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/GetKey.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/GetKey.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/GetKey.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/GetKey.php#L104-L108) Returns `self` @@ -1495,7 +1495,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/GetKey.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/GetKey.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -1505,7 +1505,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/GetKey.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/GetKey.php#L128-L135) static · Returns `?string` @@ -1513,7 +1513,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/GetKey.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/GetKey.php#L143-L149) static · Returns `array` @@ -1523,7 +1523,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/GetKey.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/GetKey.php#L154-L160) static · Returns `string` @@ -1533,7 +1533,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/GetKey.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/GetKey.php#L162-L171) static · Returns `?string` @@ -1541,7 +1541,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/GetKey.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/GetKey.php#L176-L185) static · Returns `int` @@ -1551,7 +1551,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/GetKey.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/GetKey.php#L192-L202) static · Returns `array` @@ -1561,7 +1561,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/GetKey.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/GetKey.php#L208-L218) static · Returns `string` @@ -1572,7 +1572,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/GetKey.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/GetKey.php#L225-L235) static · Returns `string` @@ -1581,7 +1581,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/GetKey.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/GetKey.php#L15-L18) static · Returns `array` @@ -1591,7 +1591,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/GetKey.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/GetKey.php#L23-L26) static · Returns `stdClass` @@ -1601,7 +1601,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/GetKey.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/GetKey.php#L32-L38) static · Returns `string` @@ -1649,11 +1649,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/History.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/History.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/History.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/History.php#L51-L59) Returns `string` @@ -1663,7 +1663,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/History.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/History.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -1674,7 +1674,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/History.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/History.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -1686,7 +1686,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/History.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/History.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -1700,7 +1700,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/History.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/History.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -1713,7 +1713,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/History.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/History.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -1724,7 +1724,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/History.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/History.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -1734,7 +1734,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/History.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/History.php#L81-L84) Returns `void` @@ -1742,13 +1742,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/History.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/History.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/History.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/History.php#L104-L108) Returns `self` @@ -1758,7 +1758,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/History.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/History.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -1768,7 +1768,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/History.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/History.php#L128-L135) static · Returns `?string` @@ -1776,7 +1776,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/History.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/History.php#L143-L149) static · Returns `array` @@ -1786,7 +1786,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/History.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/History.php#L154-L160) static · Returns `string` @@ -1796,7 +1796,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/History.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/History.php#L162-L171) static · Returns `?string` @@ -1804,7 +1804,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/History.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/History.php#L176-L185) static · Returns `int` @@ -1814,7 +1814,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/History.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/History.php#L192-L202) static · Returns `array` @@ -1824,7 +1824,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/History.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/History.php#L208-L218) static · Returns `string` @@ -1835,7 +1835,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/History.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/History.php#L225-L235) static · Returns `string` @@ -1844,7 +1844,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/History.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/History.php#L15-L18) static · Returns `array` @@ -1854,7 +1854,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/History.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/History.php#L23-L26) static · Returns `stdClass` @@ -1864,7 +1864,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/History.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/History.php#L32-L38) static · Returns `string` @@ -1894,13 +1894,13 @@ static · Returns `string` ### Methods -#### [`__construct`](../../../src/RequestHandlers/Api/HistoryCosign.php#L40-L47) +#### [`__construct`](../../../src/RequestHandlers/Api/HistoryCosign.php#L37-L44) Returns `void` **Throws:** `DependencyException`, `TableException`, `CacheException` -#### [`handle`](../../../src/RequestHandlers/Api/HistoryCosign.php#L57-L104) +#### [`handle`](../../../src/RequestHandlers/Api/HistoryCosign.php#L54-L101) Returns `Psr\Http\Message\ResponseInterface` @@ -1912,11 +1912,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/HistoryCosign.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/HistoryCosign.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistoryCosign.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistoryCosign.php#L51-L59) Returns `string` @@ -1926,7 +1926,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/HistoryCosign.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/HistoryCosign.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -1937,7 +1937,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/HistoryCosign.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/HistoryCosign.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -1949,7 +1949,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/HistoryCosign.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/HistoryCosign.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -1963,7 +1963,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/HistoryCosign.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/HistoryCosign.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -1976,7 +1976,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/HistoryCosign.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/HistoryCosign.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -1987,7 +1987,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/HistoryCosign.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/HistoryCosign.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -1997,7 +1997,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/HistoryCosign.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/HistoryCosign.php#L81-L84) Returns `void` @@ -2005,13 +2005,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/HistoryCosign.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/HistoryCosign.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistoryCosign.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistoryCosign.php#L104-L108) Returns `self` @@ -2021,7 +2021,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/HistoryCosign.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/HistoryCosign.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -2031,7 +2031,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistoryCosign.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistoryCosign.php#L128-L135) static · Returns `?string` @@ -2039,7 +2039,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/HistoryCosign.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/HistoryCosign.php#L143-L149) static · Returns `array` @@ -2049,7 +2049,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/HistoryCosign.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/HistoryCosign.php#L154-L160) static · Returns `string` @@ -2059,7 +2059,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistoryCosign.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistoryCosign.php#L162-L171) static · Returns `?string` @@ -2067,7 +2067,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/HistoryCosign.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/HistoryCosign.php#L176-L185) static · Returns `int` @@ -2077,7 +2077,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistoryCosign.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistoryCosign.php#L192-L202) static · Returns `array` @@ -2087,7 +2087,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/HistoryCosign.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/HistoryCosign.php#L208-L218) static · Returns `string` @@ -2098,7 +2098,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistoryCosign.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistoryCosign.php#L225-L235) static · Returns `string` @@ -2107,7 +2107,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistoryCosign.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistoryCosign.php#L15-L18) static · Returns `array` @@ -2117,7 +2117,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistoryCosign.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistoryCosign.php#L23-L26) static · Returns `stdClass` @@ -2127,7 +2127,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistoryCosign.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistoryCosign.php#L32-L38) static · Returns `string` @@ -2187,11 +2187,11 @@ Returns `bool` **Throws:** `DependencyException` -#### [`time`](../../../src/RequestHandlers/Api/HistorySince.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/HistorySince.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistorySince.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistorySince.php#L51-L59) Returns `string` @@ -2201,7 +2201,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/HistorySince.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/HistorySince.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -2212,7 +2212,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/HistorySince.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/HistorySince.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -2224,7 +2224,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/HistorySince.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/HistorySince.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -2238,7 +2238,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/HistorySince.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/HistorySince.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -2251,7 +2251,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/HistorySince.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/HistorySince.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -2262,7 +2262,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/HistorySince.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/HistorySince.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -2272,7 +2272,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/HistorySince.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/HistorySince.php#L81-L84) Returns `void` @@ -2280,13 +2280,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/HistorySince.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/HistorySince.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistorySince.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistorySince.php#L104-L108) Returns `self` @@ -2296,7 +2296,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/HistorySince.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/HistorySince.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -2306,7 +2306,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistorySince.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistorySince.php#L128-L135) static · Returns `?string` @@ -2314,7 +2314,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/HistorySince.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/HistorySince.php#L143-L149) static · Returns `array` @@ -2324,7 +2324,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/HistorySince.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/HistorySince.php#L154-L160) static · Returns `string` @@ -2334,7 +2334,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistorySince.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistorySince.php#L162-L171) static · Returns `?string` @@ -2342,7 +2342,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/HistorySince.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/HistorySince.php#L176-L185) static · Returns `int` @@ -2352,7 +2352,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistorySince.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistorySince.php#L192-L202) static · Returns `array` @@ -2362,7 +2362,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/HistorySince.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/HistorySince.php#L208-L218) static · Returns `string` @@ -2373,7 +2373,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistorySince.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistorySince.php#L225-L235) static · Returns `string` @@ -2382,7 +2382,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistorySince.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistorySince.php#L15-L18) static · Returns `array` @@ -2392,7 +2392,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistorySince.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistorySince.php#L23-L26) static · Returns `stdClass` @@ -2402,7 +2402,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistorySince.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistorySince.php#L32-L38) static · Returns `string` @@ -2462,11 +2462,11 @@ Returns `bool` **Throws:** `DependencyException` -#### [`time`](../../../src/RequestHandlers/Api/HistoryView.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/HistoryView.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistoryView.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/HistoryView.php#L51-L59) Returns `string` @@ -2476,7 +2476,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/HistoryView.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/HistoryView.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -2487,7 +2487,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/HistoryView.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/HistoryView.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -2499,7 +2499,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/HistoryView.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/HistoryView.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -2513,7 +2513,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/HistoryView.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/HistoryView.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -2526,7 +2526,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/HistoryView.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/HistoryView.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -2537,7 +2537,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/HistoryView.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/HistoryView.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -2547,7 +2547,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/HistoryView.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/HistoryView.php#L81-L84) Returns `void` @@ -2555,13 +2555,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/HistoryView.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/HistoryView.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistoryView.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/HistoryView.php#L104-L108) Returns `self` @@ -2571,7 +2571,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/HistoryView.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/HistoryView.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -2581,7 +2581,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistoryView.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/HistoryView.php#L128-L135) static · Returns `?string` @@ -2589,7 +2589,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/HistoryView.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/HistoryView.php#L143-L149) static · Returns `array` @@ -2599,7 +2599,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/HistoryView.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/HistoryView.php#L154-L160) static · Returns `string` @@ -2609,7 +2609,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistoryView.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/HistoryView.php#L162-L171) static · Returns `?string` @@ -2617,7 +2617,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/HistoryView.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/HistoryView.php#L176-L185) static · Returns `int` @@ -2627,7 +2627,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistoryView.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/HistoryView.php#L192-L202) static · Returns `array` @@ -2637,7 +2637,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/HistoryView.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/HistoryView.php#L208-L218) static · Returns `string` @@ -2648,7 +2648,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistoryView.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/HistoryView.php#L225-L235) static · Returns `string` @@ -2657,7 +2657,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistoryView.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/HistoryView.php#L15-L18) static · Returns `array` @@ -2667,7 +2667,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistoryView.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/HistoryView.php#L23-L26) static · Returns `stdClass` @@ -2677,7 +2677,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistoryView.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/HistoryView.php#L32-L38) static · Returns `string` @@ -2719,11 +2719,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/Info.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Info.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Info.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Info.php#L51-L59) Returns `string` @@ -2733,7 +2733,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Info.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Info.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -2744,7 +2744,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Info.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Info.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -2756,7 +2756,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Info.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Info.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -2770,7 +2770,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Info.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Info.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -2783,7 +2783,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Info.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Info.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -2794,7 +2794,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Info.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Info.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -2804,7 +2804,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Info.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Info.php#L81-L84) Returns `void` @@ -2812,13 +2812,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Info.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Info.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Info.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Info.php#L104-L108) Returns `self` @@ -2828,7 +2828,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Info.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Info.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -2838,7 +2838,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Info.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Info.php#L128-L135) static · Returns `?string` @@ -2846,7 +2846,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Info.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Info.php#L143-L149) static · Returns `array` @@ -2856,7 +2856,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Info.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Info.php#L154-L160) static · Returns `string` @@ -2866,7 +2866,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Info.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Info.php#L162-L171) static · Returns `?string` @@ -2874,7 +2874,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Info.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Info.php#L176-L185) static · Returns `int` @@ -2884,7 +2884,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Info.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Info.php#L192-L202) static · Returns `array` @@ -2894,7 +2894,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Info.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Info.php#L208-L218) static · Returns `string` @@ -2905,7 +2905,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Info.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Info.php#L225-L235) static · Returns `string` @@ -2914,7 +2914,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Info.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Info.php#L15-L18) static · Returns `array` @@ -2924,7 +2924,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Info.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Info.php#L23-L26) static · Returns `stdClass` @@ -2934,7 +2934,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Info.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Info.php#L32-L38) static · Returns `string` @@ -2982,11 +2982,11 @@ Returns `void` **Throws:** `ArrayKeyException`, `BlindIndexNotFoundException`, `CipherSweetException`, `CryptoOperationException`, `DependencyException`, `InvalidCiphertextException`, `JsonException`, `NotImplementedException`, `SodiumException`, `TableException`, `DateMalformedStringException`, `CryptoException` -#### [`time`](../../../src/RequestHandlers/Api/ListAuxData.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/ListAuxData.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ListAuxData.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ListAuxData.php#L51-L59) Returns `string` @@ -2996,7 +2996,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/ListAuxData.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/ListAuxData.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -3007,7 +3007,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/ListAuxData.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/ListAuxData.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -3019,7 +3019,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/ListAuxData.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/ListAuxData.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -3033,7 +3033,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/ListAuxData.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/ListAuxData.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -3046,7 +3046,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/ListAuxData.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/ListAuxData.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -3057,7 +3057,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/ListAuxData.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/ListAuxData.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -3067,7 +3067,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/ListAuxData.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/ListAuxData.php#L81-L84) Returns `void` @@ -3075,13 +3075,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/ListAuxData.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/ListAuxData.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/ListAuxData.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/ListAuxData.php#L104-L108) Returns `self` @@ -3091,7 +3091,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/ListAuxData.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/ListAuxData.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -3101,7 +3101,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ListAuxData.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ListAuxData.php#L128-L135) static · Returns `?string` @@ -3109,7 +3109,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/ListAuxData.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/ListAuxData.php#L143-L149) static · Returns `array` @@ -3119,7 +3119,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/ListAuxData.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/ListAuxData.php#L154-L160) static · Returns `string` @@ -3129,7 +3129,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ListAuxData.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ListAuxData.php#L162-L171) static · Returns `?string` @@ -3137,7 +3137,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/ListAuxData.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/ListAuxData.php#L176-L185) static · Returns `int` @@ -3147,7 +3147,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ListAuxData.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ListAuxData.php#L192-L202) static · Returns `array` @@ -3157,7 +3157,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/ListAuxData.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/ListAuxData.php#L208-L218) static · Returns `string` @@ -3168,7 +3168,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ListAuxData.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ListAuxData.php#L225-L235) static · Returns `string` @@ -3177,7 +3177,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/ListAuxData.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/ListAuxData.php#L15-L18) static · Returns `array` @@ -3187,7 +3187,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ListAuxData.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ListAuxData.php#L23-L26) static · Returns `stdClass` @@ -3197,7 +3197,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/ListAuxData.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/ListAuxData.php#L32-L38) static · Returns `string` @@ -3245,11 +3245,11 @@ Returns `void` **Throws:** `ArrayKeyException`, `BlindIndexNotFoundException`, `CacheException`, `CipherSweetException`, `CryptoOperationException`, `DependencyException`, `InvalidCiphertextException`, `JsonException`, `NotImplementedException`, `SodiumException`, `TableException`, `DateMalformedStringException`, `CryptoException`, `BaseJsonException` -#### [`time`](../../../src/RequestHandlers/Api/ListKeys.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/ListKeys.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ListKeys.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ListKeys.php#L51-L59) Returns `string` @@ -3259,7 +3259,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/ListKeys.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/ListKeys.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -3270,7 +3270,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/ListKeys.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/ListKeys.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -3282,7 +3282,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/ListKeys.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/ListKeys.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -3296,7 +3296,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/ListKeys.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/ListKeys.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -3309,7 +3309,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/ListKeys.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/ListKeys.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -3320,7 +3320,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/ListKeys.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/ListKeys.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -3330,7 +3330,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/ListKeys.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/ListKeys.php#L81-L84) Returns `void` @@ -3338,13 +3338,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/ListKeys.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/ListKeys.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/ListKeys.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/ListKeys.php#L104-L108) Returns `self` @@ -3354,7 +3354,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/ListKeys.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/ListKeys.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -3364,7 +3364,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ListKeys.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ListKeys.php#L128-L135) static · Returns `?string` @@ -3372,7 +3372,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/ListKeys.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/ListKeys.php#L143-L149) static · Returns `array` @@ -3382,7 +3382,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/ListKeys.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/ListKeys.php#L154-L160) static · Returns `string` @@ -3392,7 +3392,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ListKeys.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ListKeys.php#L162-L171) static · Returns `?string` @@ -3400,7 +3400,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/ListKeys.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/ListKeys.php#L176-L185) static · Returns `int` @@ -3410,7 +3410,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ListKeys.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ListKeys.php#L192-L202) static · Returns `array` @@ -3420,7 +3420,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/ListKeys.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/ListKeys.php#L208-L218) static · Returns `string` @@ -3431,7 +3431,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ListKeys.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ListKeys.php#L225-L235) static · Returns `string` @@ -3440,7 +3440,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/ListKeys.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/ListKeys.php#L15-L18) static · Returns `array` @@ -3450,7 +3450,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ListKeys.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ListKeys.php#L23-L26) static · Returns `stdClass` @@ -3460,7 +3460,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/ListKeys.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/ListKeys.php#L32-L38) static · Returns `string` @@ -3586,11 +3586,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `CacheException`, `CryptoException`, `DateMalformedStringException`, `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException`, `TableException` -#### [`time`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L51-L59) Returns `string` @@ -3600,7 +3600,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -3611,7 +3611,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -3623,7 +3623,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -3637,7 +3637,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -3650,7 +3650,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -3661,7 +3661,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -3671,7 +3671,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L81-L84) Returns `void` @@ -3679,13 +3679,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L104-L108) Returns `self` @@ -3695,7 +3695,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -3705,7 +3705,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L128-L135) static · Returns `?string` @@ -3713,7 +3713,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L143-L149) static · Returns `array` @@ -3723,7 +3723,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L154-L160) static · Returns `string` @@ -3733,7 +3733,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L162-L171) static · Returns `?string` @@ -3741,7 +3741,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L176-L185) static · Returns `int` @@ -3751,7 +3751,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L192-L202) static · Returns `array` @@ -3761,7 +3761,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L208-L218) static · Returns `string` @@ -3772,7 +3772,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L225-L235) static · Returns `string` @@ -3781,7 +3781,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L15-L18) static · Returns `array` @@ -3791,7 +3791,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L23-L26) static · Returns `stdClass` @@ -3801,7 +3801,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/ReplicaInfo.php#L32-L38) static · Returns `string` @@ -3853,11 +3853,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `CryptoException`, `DateMalformedStringException`, `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/Replicas.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Replicas.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Replicas.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Replicas.php#L51-L59) Returns `string` @@ -3867,7 +3867,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Replicas.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Replicas.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -3878,7 +3878,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Replicas.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Replicas.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -3890,7 +3890,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Replicas.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Replicas.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -3904,7 +3904,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Replicas.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Replicas.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -3917,7 +3917,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Replicas.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Replicas.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -3928,7 +3928,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Replicas.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Replicas.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -3938,7 +3938,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Replicas.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Replicas.php#L81-L84) Returns `void` @@ -3946,13 +3946,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Replicas.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Replicas.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Replicas.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Replicas.php#L104-L108) Returns `self` @@ -3962,7 +3962,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Replicas.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Replicas.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -3972,7 +3972,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Replicas.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Replicas.php#L128-L135) static · Returns `?string` @@ -3980,7 +3980,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Replicas.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Replicas.php#L143-L149) static · Returns `array` @@ -3990,7 +3990,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Replicas.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Replicas.php#L154-L160) static · Returns `string` @@ -4000,7 +4000,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Replicas.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Replicas.php#L162-L171) static · Returns `?string` @@ -4008,7 +4008,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Replicas.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Replicas.php#L176-L185) static · Returns `int` @@ -4018,7 +4018,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Replicas.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Replicas.php#L192-L202) static · Returns `array` @@ -4028,7 +4028,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Replicas.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Replicas.php#L208-L218) static · Returns `string` @@ -4039,7 +4039,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Replicas.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Replicas.php#L225-L235) static · Returns `string` @@ -4048,7 +4048,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Replicas.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Replicas.php#L15-L18) static · Returns `array` @@ -4058,7 +4058,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Replicas.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Replicas.php#L23-L26) static · Returns `stdClass` @@ -4068,7 +4068,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Replicas.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Replicas.php#L32-L38) static · Returns `string` @@ -4122,11 +4122,11 @@ Returns `array` **Attributes:** `#[Override]` -#### [`time`](../../../src/RequestHandlers/Api/Revoke.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/Revoke.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Revoke.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/Revoke.php#L51-L59) Returns `string` @@ -4136,7 +4136,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/Revoke.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/Revoke.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -4147,7 +4147,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/Revoke.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/Revoke.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -4159,7 +4159,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/Revoke.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/Revoke.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -4173,7 +4173,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/Revoke.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/Revoke.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -4186,7 +4186,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/Revoke.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/Revoke.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -4197,7 +4197,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/Revoke.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/Revoke.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -4207,7 +4207,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/Revoke.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/Revoke.php#L81-L84) Returns `void` @@ -4215,13 +4215,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/Revoke.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/Revoke.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/Revoke.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/Revoke.php#L104-L108) Returns `self` @@ -4231,7 +4231,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/Revoke.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/Revoke.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -4241,7 +4241,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Revoke.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/Revoke.php#L128-L135) static · Returns `?string` @@ -4249,7 +4249,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/Revoke.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/Revoke.php#L143-L149) static · Returns `array` @@ -4259,7 +4259,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/Revoke.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/Revoke.php#L154-L160) static · Returns `string` @@ -4269,7 +4269,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Revoke.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/Revoke.php#L162-L171) static · Returns `?string` @@ -4277,7 +4277,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/Revoke.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/Revoke.php#L176-L185) static · Returns `int` @@ -4287,7 +4287,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Revoke.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/Revoke.php#L192-L202) static · Returns `array` @@ -4297,7 +4297,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/Revoke.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/Revoke.php#L208-L218) static · Returns `string` @@ -4308,7 +4308,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Revoke.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/Revoke.php#L225-L235) static · Returns `string` @@ -4317,7 +4317,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/Revoke.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/Revoke.php#L15-L18) static · Returns `array` @@ -4327,7 +4327,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Revoke.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/Revoke.php#L23-L26) static · Returns `stdClass` @@ -4337,7 +4337,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/Revoke.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/Revoke.php#L32-L38) static · Returns `string` @@ -4379,11 +4379,11 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `JsonException`, `NotImplementedException`, `SodiumException` -#### [`time`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L51-L59) Returns `string` @@ -4393,7 +4393,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -4404,7 +4404,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -4416,7 +4416,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -4430,7 +4430,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -4443,7 +4443,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -4454,7 +4454,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -4464,7 +4464,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L81-L84) Returns `void` @@ -4472,13 +4472,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L104-L108) Returns `self` @@ -4488,7 +4488,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -4498,7 +4498,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L128-L135) static · Returns `?string` @@ -4506,7 +4506,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L143-L149) static · Returns `array` @@ -4516,7 +4516,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L154-L160) static · Returns `string` @@ -4526,7 +4526,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L162-L171) static · Returns `?string` @@ -4534,7 +4534,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L176-L185) static · Returns `int` @@ -4544,7 +4544,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L192-L202) static · Returns `array` @@ -4554,7 +4554,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L208-L218) static · Returns `string` @@ -4565,7 +4565,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L225-L235) static · Returns `string` @@ -4574,7 +4574,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L15-L18) static · Returns `array` @@ -4584,7 +4584,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L23-L26) static · Returns `stdClass` @@ -4594,7 +4594,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/ServerPublicKey.php#L32-L38) static · Returns `string` @@ -4648,11 +4648,11 @@ Returns `array` **Attributes:** `#[Override]` -#### [`time`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L51-L59) Returns `string` @@ -4662,7 +4662,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -4673,7 +4673,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -4685,7 +4685,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -4699,7 +4699,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -4712,7 +4712,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -4723,7 +4723,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -4733,7 +4733,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L81-L84) Returns `void` @@ -4741,13 +4741,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L104-L108) Returns `self` @@ -4757,7 +4757,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -4767,7 +4767,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L128-L135) static · Returns `?string` @@ -4775,7 +4775,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L143-L149) static · Returns `array` @@ -4785,7 +4785,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L154-L160) static · Returns `string` @@ -4795,7 +4795,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L162-L171) static · Returns `?string` @@ -4803,7 +4803,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L176-L185) static · Returns `int` @@ -4813,7 +4813,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L192-L202) static · Returns `array` @@ -4823,7 +4823,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L208-L218) static · Returns `string` @@ -4834,7 +4834,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L225-L235) static · Returns `string` @@ -4843,7 +4843,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L15-L18) static · Returns `array` @@ -4853,7 +4853,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L23-L26) static · Returns `stdClass` @@ -4863,7 +4863,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L32-L38) static · Returns `string` @@ -4873,7 +4873,7 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L57-L71) +#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L49-L63) static · Returns `?int` @@ -4883,7 +4883,7 @@ static · Returns `?int` - `$otp`: `string` - `$windows`: `int` = 2 -#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L73-L89) +#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L65-L81) static · Returns `string` @@ -4892,7 +4892,7 @@ static · Returns `string` - `$secret`: `string` - `$time`: `?int` = null -#### [`ord`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L94-L98) +#### [`ord`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L86-L90) static · Returns `int` @@ -4902,7 +4902,7 @@ Avoid cache-timing leaks in ord() by using unpack() - `$chr`: `string` -#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L159-L168) +#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpDisenroll.php#L151-L160) Returns `void` @@ -5066,11 +5066,11 @@ Returns `array` **Attributes:** `#[Override]` -#### [`time`](../../../src/RequestHandlers/Api/TotpEnroll.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/TotpEnroll.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpEnroll.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpEnroll.php#L51-L59) Returns `string` @@ -5080,7 +5080,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/TotpEnroll.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/TotpEnroll.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -5091,7 +5091,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/TotpEnroll.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/TotpEnroll.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -5103,7 +5103,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/TotpEnroll.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/TotpEnroll.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -5117,7 +5117,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/TotpEnroll.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/TotpEnroll.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -5130,7 +5130,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/TotpEnroll.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/TotpEnroll.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -5141,7 +5141,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/TotpEnroll.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/TotpEnroll.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -5151,7 +5151,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpEnroll.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpEnroll.php#L81-L84) Returns `void` @@ -5159,13 +5159,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/TotpEnroll.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/TotpEnroll.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpEnroll.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpEnroll.php#L104-L108) Returns `self` @@ -5175,7 +5175,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/TotpEnroll.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/TotpEnroll.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -5185,7 +5185,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpEnroll.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpEnroll.php#L128-L135) static · Returns `?string` @@ -5193,7 +5193,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/TotpEnroll.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/TotpEnroll.php#L143-L149) static · Returns `array` @@ -5203,7 +5203,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/TotpEnroll.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/TotpEnroll.php#L154-L160) static · Returns `string` @@ -5213,7 +5213,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpEnroll.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpEnroll.php#L162-L171) static · Returns `?string` @@ -5221,7 +5221,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/TotpEnroll.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/TotpEnroll.php#L176-L185) static · Returns `int` @@ -5231,7 +5231,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpEnroll.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpEnroll.php#L192-L202) static · Returns `array` @@ -5241,7 +5241,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpEnroll.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpEnroll.php#L208-L218) static · Returns `string` @@ -5252,7 +5252,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpEnroll.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpEnroll.php#L225-L235) static · Returns `string` @@ -5261,7 +5261,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpEnroll.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpEnroll.php#L15-L18) static · Returns `array` @@ -5271,7 +5271,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpEnroll.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpEnroll.php#L23-L26) static · Returns `stdClass` @@ -5281,7 +5281,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpEnroll.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpEnroll.php#L32-L38) static · Returns `string` @@ -5291,7 +5291,7 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpEnroll.php#L57-L71) +#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpEnroll.php#L49-L63) static · Returns `?int` @@ -5301,7 +5301,7 @@ static · Returns `?int` - `$otp`: `string` - `$windows`: `int` = 2 -#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpEnroll.php#L73-L89) +#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpEnroll.php#L65-L81) static · Returns `string` @@ -5310,7 +5310,7 @@ static · Returns `string` - `$secret`: `string` - `$time`: `?int` = null -#### [`ord`](../../../src/RequestHandlers/Api/TotpEnroll.php#L94-L98) +#### [`ord`](../../../src/RequestHandlers/Api/TotpEnroll.php#L86-L90) static · Returns `int` @@ -5320,7 +5320,7 @@ Avoid cache-timing leaks in ord() by using unpack() - `$chr`: `string` -#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpEnroll.php#L159-L168) +#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpEnroll.php#L151-L160) Returns `void` @@ -5484,11 +5484,11 @@ Returns `array` **Attributes:** `#[Override]` -#### [`time`](../../../src/RequestHandlers/Api/TotpRotate.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/Api/TotpRotate.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpRotate.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/Api/TotpRotate.php#L51-L59) Returns `string` @@ -5498,7 +5498,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/Api/TotpRotate.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/Api/TotpRotate.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -5509,7 +5509,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/Api/TotpRotate.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/Api/TotpRotate.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -5521,7 +5521,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/Api/TotpRotate.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/Api/TotpRotate.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -5535,7 +5535,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/Api/TotpRotate.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/Api/TotpRotate.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -5548,7 +5548,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/Api/TotpRotate.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/Api/TotpRotate.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -5559,7 +5559,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/Api/TotpRotate.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/Api/TotpRotate.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -5569,7 +5569,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpRotate.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/Api/TotpRotate.php#L81-L84) Returns `void` @@ -5577,13 +5577,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/Api/TotpRotate.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/Api/TotpRotate.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpRotate.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/Api/TotpRotate.php#L104-L108) Returns `self` @@ -5593,7 +5593,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/Api/TotpRotate.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/Api/TotpRotate.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -5603,7 +5603,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpRotate.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/Api/TotpRotate.php#L128-L135) static · Returns `?string` @@ -5611,7 +5611,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/Api/TotpRotate.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/Api/TotpRotate.php#L143-L149) static · Returns `array` @@ -5621,7 +5621,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/Api/TotpRotate.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/Api/TotpRotate.php#L154-L160) static · Returns `string` @@ -5631,7 +5631,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpRotate.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/Api/TotpRotate.php#L162-L171) static · Returns `?string` @@ -5639,7 +5639,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/Api/TotpRotate.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/Api/TotpRotate.php#L176-L185) static · Returns `int` @@ -5649,7 +5649,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpRotate.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/Api/TotpRotate.php#L192-L202) static · Returns `array` @@ -5659,7 +5659,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpRotate.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/Api/TotpRotate.php#L208-L218) static · Returns `string` @@ -5670,7 +5670,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpRotate.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/Api/TotpRotate.php#L225-L235) static · Returns `string` @@ -5679,7 +5679,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpRotate.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/Api/TotpRotate.php#L15-L18) static · Returns `array` @@ -5689,7 +5689,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpRotate.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/Api/TotpRotate.php#L23-L26) static · Returns `stdClass` @@ -5699,7 +5699,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpRotate.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/Api/TotpRotate.php#L32-L38) static · Returns `string` @@ -5709,7 +5709,7 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpRotate.php#L57-L71) +#### [`verifyTOTP`](../../../src/RequestHandlers/Api/TotpRotate.php#L49-L63) static · Returns `?int` @@ -5719,7 +5719,7 @@ static · Returns `?int` - `$otp`: `string` - `$windows`: `int` = 2 -#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpRotate.php#L73-L89) +#### [`generateTOTP`](../../../src/RequestHandlers/Api/TotpRotate.php#L65-L81) static · Returns `string` @@ -5728,7 +5728,7 @@ static · Returns `string` - `$secret`: `string` - `$time`: `?int` = null -#### [`ord`](../../../src/RequestHandlers/Api/TotpRotate.php#L94-L98) +#### [`ord`](../../../src/RequestHandlers/Api/TotpRotate.php#L86-L90) static · Returns `int` @@ -5738,7 +5738,7 @@ Avoid cache-timing leaks in ord() by using unpack() - `$chr`: `string` -#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpRotate.php#L159-L168) +#### [`throwIfTimeOutsideWindow`](../../../src/RequestHandlers/Api/TotpRotate.php#L151-L160) Returns `void` diff --git a/docs/reference/classes/requesthandlers.md b/docs/reference/classes/requesthandlers.md index f2bb17e..5015ae5 100644 --- a/docs/reference/classes/requesthandlers.md +++ b/docs/reference/classes/requesthandlers.md @@ -36,11 +36,11 @@ Returns `Psr\Http\Message\ResponseInterface` - `$request`: `Psr\Http\Message\ServerRequestInterface` -#### [`time`](../../../src/RequestHandlers/IndexPage.php#L38-L41) +#### [`time`](../../../src/RequestHandlers/IndexPage.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/RequestHandlers/IndexPage.php#L52-L60) +#### [`canonicalizeActor`](../../../src/RequestHandlers/IndexPage.php#L51-L59) Returns `string` @@ -50,7 +50,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/RequestHandlers/IndexPage.php#L68-L71) +#### [`error`](../../../src/RequestHandlers/IndexPage.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -61,7 +61,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/RequestHandlers/IndexPage.php#L82-L93) +#### [`signResponse`](../../../src/RequestHandlers/IndexPage.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -73,7 +73,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/RequestHandlers/IndexPage.php#L105-L124) +#### [`json`](../../../src/RequestHandlers/IndexPage.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -87,7 +87,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/RequestHandlers/IndexPage.php#L134-L151) +#### [`twig`](../../../src/RequestHandlers/IndexPage.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -100,7 +100,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/RequestHandlers/IndexPage.php#L54-L57) +#### [`appCache`](../../../src/RequestHandlers/IndexPage.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -111,7 +111,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/RequestHandlers/IndexPage.php#L64-L87) +#### [`table`](../../../src/RequestHandlers/IndexPage.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -121,7 +121,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/RequestHandlers/IndexPage.php#L89-L92) +#### [`injectConfig`](../../../src/RequestHandlers/IndexPage.php#L81-L84) Returns `void` @@ -129,13 +129,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/RequestHandlers/IndexPage.php#L97-L107) +#### [`config`](../../../src/RequestHandlers/IndexPage.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/RequestHandlers/IndexPage.php#L112-L116) +#### [`setWebFinger`](../../../src/RequestHandlers/IndexPage.php#L104-L108) Returns `self` @@ -145,7 +145,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/RequestHandlers/IndexPage.php#L123-L130) +#### [`webfinger`](../../../src/RequestHandlers/IndexPage.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -155,7 +155,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/RequestHandlers/IndexPage.php#L136-L143) +#### [`parseUrlHost`](../../../src/RequestHandlers/IndexPage.php#L128-L135) static · Returns `?string` @@ -163,7 +163,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/RequestHandlers/IndexPage.php#L151-L157) +#### [`assertArray`](../../../src/RequestHandlers/IndexPage.php#L143-L149) static · Returns `array` @@ -173,7 +173,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/RequestHandlers/IndexPage.php#L162-L168) +#### [`assertString`](../../../src/RequestHandlers/IndexPage.php#L154-L160) static · Returns `string` @@ -183,7 +183,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/RequestHandlers/IndexPage.php#L170-L179) +#### [`assertStringOrNull`](../../../src/RequestHandlers/IndexPage.php#L162-L171) static · Returns `?string` @@ -191,7 +191,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/RequestHandlers/IndexPage.php#L184-L193) +#### [`assertInt`](../../../src/RequestHandlers/IndexPage.php#L176-L185) static · Returns `int` @@ -201,7 +201,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/RequestHandlers/IndexPage.php#L200-L210) +#### [`rowToStringArray`](../../../src/RequestHandlers/IndexPage.php#L192-L202) static · Returns `array` @@ -211,7 +211,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/RequestHandlers/IndexPage.php#L216-L226) +#### [`decryptedString`](../../../src/RequestHandlers/IndexPage.php#L208-L218) static · Returns `string` @@ -222,7 +222,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/RequestHandlers/IndexPage.php#L233-L243) +#### [`blindIndexValue`](../../../src/RequestHandlers/IndexPage.php#L225-L235) static · Returns `string` @@ -231,7 +231,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/RequestHandlers/IndexPage.php#L16-L19) +#### [`jsonDecode`](../../../src/RequestHandlers/IndexPage.php#L15-L18) static · Returns `array` @@ -241,7 +241,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/RequestHandlers/IndexPage.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/RequestHandlers/IndexPage.php#L23-L26) static · Returns `stdClass` @@ -251,7 +251,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/RequestHandlers/IndexPage.php#L33-L39) +#### [`jsonEncode`](../../../src/RequestHandlers/IndexPage.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/scheduled.md b/docs/reference/classes/scheduled.md index c3da325..ed02505 100644 --- a/docs/reference/classes/scheduled.md +++ b/docs/reference/classes/scheduled.md @@ -25,7 +25,7 @@ Namespace: `FediE2EE\PKDServer\Scheduled` ### Methods -#### [`__construct`](../../../src/Scheduled/ASQueue.php#L46-L55) +#### [`__construct`](../../../src/Scheduled/ASQueue.php#L45-L54) Returns `void` @@ -35,7 +35,7 @@ Returns `void` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`run`](../../../src/Scheduled/ASQueue.php#L67-L102) +#### [`run`](../../../src/Scheduled/ASQueue.php#L66-L101) Returns `void` @@ -45,7 +45,7 @@ All this method does is grab the unprocessed messages, order them, decode them, **Throws:** `DependencyException` -#### [`appCache`](../../../src/Scheduled/ASQueue.php#L54-L57) +#### [`appCache`](../../../src/Scheduled/ASQueue.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -56,7 +56,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Scheduled/ASQueue.php#L64-L87) +#### [`table`](../../../src/Scheduled/ASQueue.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -66,7 +66,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Scheduled/ASQueue.php#L89-L92) +#### [`injectConfig`](../../../src/Scheduled/ASQueue.php#L81-L84) Returns `void` @@ -74,13 +74,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Scheduled/ASQueue.php#L97-L107) +#### [`config`](../../../src/Scheduled/ASQueue.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Scheduled/ASQueue.php#L112-L116) +#### [`setWebFinger`](../../../src/Scheduled/ASQueue.php#L104-L108) Returns `self` @@ -90,7 +90,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Scheduled/ASQueue.php#L123-L130) +#### [`webfinger`](../../../src/Scheduled/ASQueue.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -100,7 +100,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Scheduled/ASQueue.php#L136-L143) +#### [`parseUrlHost`](../../../src/Scheduled/ASQueue.php#L128-L135) static · Returns `?string` @@ -108,7 +108,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Scheduled/ASQueue.php#L151-L157) +#### [`assertArray`](../../../src/Scheduled/ASQueue.php#L143-L149) static · Returns `array` @@ -118,7 +118,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Scheduled/ASQueue.php#L162-L168) +#### [`assertString`](../../../src/Scheduled/ASQueue.php#L154-L160) static · Returns `string` @@ -128,7 +128,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Scheduled/ASQueue.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Scheduled/ASQueue.php#L162-L171) static · Returns `?string` @@ -136,7 +136,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Scheduled/ASQueue.php#L184-L193) +#### [`assertInt`](../../../src/Scheduled/ASQueue.php#L176-L185) static · Returns `int` @@ -146,7 +146,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Scheduled/ASQueue.php#L200-L210) +#### [`rowToStringArray`](../../../src/Scheduled/ASQueue.php#L192-L202) static · Returns `array` @@ -156,7 +156,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Scheduled/ASQueue.php#L216-L226) +#### [`decryptedString`](../../../src/Scheduled/ASQueue.php#L208-L218) static · Returns `string` @@ -167,7 +167,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Scheduled/ASQueue.php#L233-L243) +#### [`blindIndexValue`](../../../src/Scheduled/ASQueue.php#L225-L235) static · Returns `string` @@ -176,7 +176,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Scheduled/ASQueue.php#L16-L19) +#### [`jsonDecode`](../../../src/Scheduled/ASQueue.php#L15-L18) static · Returns `array` @@ -186,7 +186,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Scheduled/ASQueue.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Scheduled/ASQueue.php#L23-L26) static · Returns `stdClass` @@ -196,7 +196,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Scheduled/ASQueue.php#L33-L39) +#### [`jsonEncode`](../../../src/Scheduled/ASQueue.php#L32-L38) static · Returns `string` @@ -226,7 +226,7 @@ Perform witness co-signatures for third-porty Public Key Directory instances. ### Methods -#### [`__construct`](../../../src/Scheduled/Witness.php#L86-L123) +#### [`__construct`](../../../src/Scheduled/Witness.php#L80-L117) Returns `void` @@ -236,13 +236,13 @@ Returns `void` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`run`](../../../src/Scheduled/Witness.php#L130-L142) +#### [`run`](../../../src/Scheduled/Witness.php#L124-L136) Returns `void` **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException` -#### [`getHashesSince`](../../../src/Scheduled/Witness.php#L751-L768) +#### [`getHashesSince`](../../../src/Scheduled/Witness.php#L745-L762) Returns `array` @@ -252,7 +252,7 @@ Returns `array` **Throws:** `CryptoException`, `GuzzleException`, `HttpSignatureException`, `JsonException`, `NotImplementedException`, `ProtocolException`, `SodiumException` -#### [`appCache`](../../../src/Scheduled/Witness.php#L54-L57) +#### [`appCache`](../../../src/Scheduled/Witness.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -263,7 +263,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Scheduled/Witness.php#L64-L87) +#### [`table`](../../../src/Scheduled/Witness.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -273,7 +273,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Scheduled/Witness.php#L89-L92) +#### [`injectConfig`](../../../src/Scheduled/Witness.php#L81-L84) Returns `void` @@ -281,13 +281,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Scheduled/Witness.php#L97-L107) +#### [`config`](../../../src/Scheduled/Witness.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Scheduled/Witness.php#L112-L116) +#### [`setWebFinger`](../../../src/Scheduled/Witness.php#L104-L108) Returns `self` @@ -297,7 +297,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Scheduled/Witness.php#L123-L130) +#### [`webfinger`](../../../src/Scheduled/Witness.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -307,7 +307,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Scheduled/Witness.php#L136-L143) +#### [`parseUrlHost`](../../../src/Scheduled/Witness.php#L128-L135) static · Returns `?string` @@ -315,7 +315,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Scheduled/Witness.php#L151-L157) +#### [`assertArray`](../../../src/Scheduled/Witness.php#L143-L149) static · Returns `array` @@ -325,7 +325,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Scheduled/Witness.php#L162-L168) +#### [`assertString`](../../../src/Scheduled/Witness.php#L154-L160) static · Returns `string` @@ -335,7 +335,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Scheduled/Witness.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Scheduled/Witness.php#L162-L171) static · Returns `?string` @@ -343,7 +343,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Scheduled/Witness.php#L184-L193) +#### [`assertInt`](../../../src/Scheduled/Witness.php#L176-L185) static · Returns `int` @@ -353,7 +353,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Scheduled/Witness.php#L200-L210) +#### [`rowToStringArray`](../../../src/Scheduled/Witness.php#L192-L202) static · Returns `array` @@ -363,7 +363,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Scheduled/Witness.php#L216-L226) +#### [`decryptedString`](../../../src/Scheduled/Witness.php#L208-L218) static · Returns `string` @@ -374,7 +374,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Scheduled/Witness.php#L233-L243) +#### [`blindIndexValue`](../../../src/Scheduled/Witness.php#L225-L235) static · Returns `string` @@ -383,7 +383,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Scheduled/Witness.php#L16-L19) +#### [`jsonDecode`](../../../src/Scheduled/Witness.php#L15-L18) static · Returns `array` @@ -393,7 +393,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Scheduled/Witness.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Scheduled/Witness.php#L23-L26) static · Returns `stdClass` @@ -403,7 +403,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Scheduled/Witness.php#L33-L39) +#### [`jsonEncode`](../../../src/Scheduled/Witness.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/tables-records.md b/docs/reference/classes/tables-records.md index 87b50b4..27e24fa 100644 --- a/docs/reference/classes/tables-records.md +++ b/docs/reference/classes/tables-records.md @@ -65,17 +65,17 @@ Instantiate a new object without a primary key Returns `array` -#### [`hasPrimaryKey`](../../../src/Tables/Records/Actor.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/Actor.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/Actor.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/Actor.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/Actor.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/Actor.php#L57-L67) Returns `self` @@ -86,7 +86,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/Actor.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/Actor.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -96,11 +96,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/Actor.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/Actor.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/Actor.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/Actor.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -114,7 +114,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/Actor.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/Actor.php#L15-L18) static · Returns `array` @@ -124,7 +124,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/Actor.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/Actor.php#L23-L26) static · Returns `stdClass` @@ -134,7 +134,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/Actor.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/Actor.php#L32-L38) static · Returns `string` @@ -185,17 +185,17 @@ Returns `void` - `$keyID`: `?string` = null - `$primaryKey`: `?int` = null -#### [`hasPrimaryKey`](../../../src/Tables/Records/ActorKey.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/ActorKey.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/ActorKey.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/ActorKey.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/ActorKey.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/ActorKey.php#L57-L67) Returns `self` @@ -206,7 +206,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ActorKey.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ActorKey.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -216,11 +216,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/ActorKey.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/ActorKey.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ActorKey.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ActorKey.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -234,7 +234,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/ActorKey.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/ActorKey.php#L15-L18) static · Returns `array` @@ -244,7 +244,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/ActorKey.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/ActorKey.php#L23-L26) static · Returns `stdClass` @@ -254,7 +254,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/ActorKey.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/ActorKey.php#L32-L38) static · Returns `string` @@ -309,17 +309,17 @@ Returns `void` **API** · Returns `FediE2EE\PKDServer\Tables\Records\Actor` -#### [`hasPrimaryKey`](../../../src/Tables/Records/AuxDatum.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/AuxDatum.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/AuxDatum.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/AuxDatum.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/AuxDatum.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/AuxDatum.php#L57-L67) Returns `self` @@ -330,7 +330,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/AuxDatum.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/AuxDatum.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -340,11 +340,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/AuxDatum.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/AuxDatum.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/AuxDatum.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/AuxDatum.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -358,7 +358,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/AuxDatum.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/AuxDatum.php#L15-L18) static · Returns `array` @@ -368,7 +368,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/AuxDatum.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/AuxDatum.php#L23-L26) static · Returns `stdClass` @@ -378,7 +378,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/AuxDatum.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/AuxDatum.php#L32-L38) static · Returns `string` @@ -416,7 +416,7 @@ Abstraction for a row in the MerkleState table ### Methods -#### [`__construct`](../../../src/Tables/Records/MerkleLeaf.php#L32-L43) +#### [`__construct`](../../../src/Tables/Records/MerkleLeaf.php#L28-L39) Returns `void` @@ -431,7 +431,7 @@ Returns `void` - `$wrappedKeys`: `?string` = null - `$primaryKey`: `?int` = null -#### [`from`](../../../src/Tables/Records/MerkleLeaf.php#L49-L66) +#### [`from`](../../../src/Tables/Records/MerkleLeaf.php#L45-L62) static · Returns `self` @@ -443,7 +443,7 @@ static · Returns `self` **Throws:** `NotImplementedException`, `SodiumException` -#### [`fromPayload`](../../../src/Tables/Records/MerkleLeaf.php#L74-L84) +#### [`fromPayload`](../../../src/Tables/Records/MerkleLeaf.php#L70-L80) static **API** · Returns `self` @@ -455,7 +455,7 @@ static **API** · Returns `self` **Throws:** `NotImplementedException`, `SodiumException` -#### [`setPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L86-L90) +#### [`setPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L82-L86) Returns `static` @@ -463,35 +463,35 @@ Returns `static` - `$primary`: `?int` -#### [`getContents`](../../../src/Tables/Records/MerkleLeaf.php#L95-L98) +#### [`getContents`](../../../src/Tables/Records/MerkleLeaf.php#L91-L94) Returns `array` -#### [`getInclusionProof`](../../../src/Tables/Records/MerkleLeaf.php#L103-L106) +#### [`getInclusionProof`](../../../src/Tables/Records/MerkleLeaf.php#L99-L102) **API** · Returns `?FediE2EE\PKD\Crypto\Merkle\InclusionProof` -#### [`getSignature`](../../../src/Tables/Records/MerkleLeaf.php#L108-L111) +#### [`getSignature`](../../../src/Tables/Records/MerkleLeaf.php#L104-L107) Returns `string` -#### [`serializeForMerkle`](../../../src/Tables/Records/MerkleLeaf.php#L116-L123) +#### [`serializeForMerkle`](../../../src/Tables/Records/MerkleLeaf.php#L112-L119) Returns `string` **Throws:** `SodiumException` -#### [`hasPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/MerkleLeaf.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/MerkleLeaf.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/MerkleLeaf.php#L57-L67) Returns `self` @@ -502,7 +502,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/MerkleLeaf.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/MerkleLeaf.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -512,11 +512,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/MerkleLeaf.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/MerkleLeaf.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/MerkleLeaf.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/MerkleLeaf.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -530,7 +530,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/MerkleLeaf.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/MerkleLeaf.php#L15-L18) static · Returns `array` @@ -540,7 +540,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/MerkleLeaf.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/MerkleLeaf.php#L23-L26) static · Returns `stdClass` @@ -550,7 +550,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/MerkleLeaf.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/MerkleLeaf.php#L32-L38) static · Returns `string` @@ -723,17 +723,17 @@ Returns `array` **Throws:** `BaseJsonException`, `JsonException` -#### [`hasPrimaryKey`](../../../src/Tables/Records/Peer.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/Peer.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/Peer.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/Peer.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/Peer.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/Peer.php#L57-L67) Returns `self` @@ -744,7 +744,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/Peer.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/Peer.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -754,11 +754,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/Peer.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/Peer.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/Peer.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/Peer.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -772,7 +772,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/Peer.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/Peer.php#L15-L18) static · Returns `array` @@ -782,7 +782,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/Peer.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/Peer.php#L23-L26) static · Returns `stdClass` @@ -792,7 +792,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/Peer.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/Peer.php#L32-L38) static · Returns `string` @@ -949,17 +949,17 @@ Returns `void` Returns `array` -#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaActor.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaActor.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaActor.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaActor.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaActor.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaActor.php#L57-L67) Returns `self` @@ -970,7 +970,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaActor.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaActor.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -980,11 +980,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaActor.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaActor.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaActor.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaActor.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -998,7 +998,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/ReplicaActor.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/ReplicaActor.php#L15-L18) static · Returns `array` @@ -1008,7 +1008,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaActor.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaActor.php#L23-L26) static · Returns `stdClass` @@ -1018,7 +1018,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/ReplicaActor.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/ReplicaActor.php#L32-L38) static · Returns `string` @@ -1179,17 +1179,17 @@ Returns `void` - `$revokeLeaf`: `?FediE2EE\PKDServer\Tables\Records\ReplicaLeaf` = null - `$primaryKey`: `?int` = null -#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaAuxDatum.php#L57-L67) Returns `self` @@ -1200,7 +1200,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaAuxDatum.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaAuxDatum.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -1210,11 +1210,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaAuxDatum.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaAuxDatum.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaAuxDatum.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaAuxDatum.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -1228,7 +1228,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/ReplicaAuxDatum.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/ReplicaAuxDatum.php#L15-L18) static · Returns `array` @@ -1238,7 +1238,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaAuxDatum.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaAuxDatum.php#L23-L26) static · Returns `stdClass` @@ -1248,7 +1248,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/ReplicaAuxDatum.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/ReplicaAuxDatum.php#L32-L38) static · Returns `string` @@ -1396,7 +1396,7 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`__construct`](../../../src/Tables/Records/ReplicaLeaf.php#L21-L34) +#### [`__construct`](../../../src/Tables/Records/ReplicaLeaf.php#L20-L33) Returns `void` @@ -1413,29 +1413,29 @@ Returns `void` - `$replicated`: `string` = '' - `$primaryKey`: `?int` = null -#### [`toArray`](../../../src/Tables/Records/ReplicaLeaf.php#L40-L64) +#### [`toArray`](../../../src/Tables/Records/ReplicaLeaf.php#L39-L63) Returns `array` **Throws:** `JsonException` -#### [`serializeForMerkle`](../../../src/Tables/Records/ReplicaLeaf.php#L70-L77) +#### [`serializeForMerkle`](../../../src/Tables/Records/ReplicaLeaf.php#L69-L76) **API** · Returns `string` **Throws:** `SodiumException` -#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaLeaf.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaLeaf.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaLeaf.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaLeaf.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaLeaf.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaLeaf.php#L57-L67) Returns `self` @@ -1446,7 +1446,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaLeaf.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaLeaf.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -1456,11 +1456,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaLeaf.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaLeaf.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaLeaf.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaLeaf.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -1474,7 +1474,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/ReplicaLeaf.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/ReplicaLeaf.php#L15-L18) static · Returns `array` @@ -1484,7 +1484,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaLeaf.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaLeaf.php#L23-L26) static · Returns `stdClass` @@ -1494,7 +1494,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/ReplicaLeaf.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/ReplicaLeaf.php#L32-L38) static · Returns `string` @@ -1655,17 +1655,17 @@ Returns `void` - `$keyID`: `?string` = null - `$primaryKey`: `?int` = null -#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Tables/Records/ReplicaPublicKey.php#L57-L67) Returns `self` @@ -1676,7 +1676,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaPublicKey.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Tables/Records/ReplicaPublicKey.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -1686,11 +1686,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaPublicKey.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Tables/Records/ReplicaPublicKey.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaPublicKey.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Tables/Records/ReplicaPublicKey.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -1704,7 +1704,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Tables/Records/ReplicaPublicKey.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/Records/ReplicaPublicKey.php#L15-L18) static · Returns `array` @@ -1714,7 +1714,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaPublicKey.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/Records/ReplicaPublicKey.php#L23-L26) static · Returns `stdClass` @@ -1724,7 +1724,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/Records/ReplicaPublicKey.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/Records/ReplicaPublicKey.php#L32-L38) static · Returns `string` diff --git a/docs/reference/classes/tables.md b/docs/reference/classes/tables.md index dfe890f..d5180c2 100644 --- a/docs/reference/classes/tables.md +++ b/docs/reference/classes/tables.md @@ -60,17 +60,17 @@ Returns `int` ### Methods -#### [`getCipher`](../../../src/Tables/Actors.php#L36-L49) +#### [`getCipher`](../../../src/Tables/Actors.php#L34-L47) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getNextPrimaryKey`](../../../src/Tables/Actors.php#L74-L81) +#### [`getNextPrimaryKey`](../../../src/Tables/Actors.php#L72-L79) Returns `int` -#### [`getActorByID`](../../../src/Tables/Actors.php#L95-L129) +#### [`getActorByID`](../../../src/Tables/Actors.php#L93-L127) **API** · Returns `FediE2EE\PKDServer\Tables\Records\Actor` @@ -82,7 +82,7 @@ When you already have a database ID, just fetch the object. **Throws:** `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `InvalidCiphertextException`, `SodiumException`, `TableException` -#### [`getCounts`](../../../src/Tables/Actors.php#L135-L149) +#### [`getCounts`](../../../src/Tables/Actors.php#L133-L147) Returns `array` @@ -90,7 +90,7 @@ Returns `array` - `$actorID`: `int` -#### [`searchForActor`](../../../src/Tables/Actors.php#L165-L201) +#### [`searchForActor`](../../../src/Tables/Actors.php#L163-L199) **API** · Returns `?FediE2EE\PKDServer\Tables\Records\Actor` @@ -104,7 +104,7 @@ from the database based on that value. May return NULL, which indicates no recor **Throws:** `ArrayKeyException`, `BlindIndexNotFoundException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `InvalidCiphertextException`, `SodiumException` -#### [`createActor`](../../../src/Tables/Actors.php#L211-L231) +#### [`createActor`](../../../src/Tables/Actors.php#L209-L229) Returns `int` @@ -116,7 +116,7 @@ Returns `int` **Throws:** `ArrayKeyException`, `CipherSweetException`, `CryptoOperationException`, `ProtocolException`, `SodiumException`, `TableException` -#### [`clearCacheForActor`](../../../src/Tables/Actors.php#L236-L242) +#### [`clearCacheForActor`](../../../src/Tables/Actors.php#L234-L240) Returns `void` @@ -140,13 +140,13 @@ Returns `void` ### Methods -#### [`getCipher`](../../../src/Tables/AuxData.php#L62-L73) +#### [`getCipher`](../../../src/Tables/AuxData.php#L59-L70) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getAuxDataForActor`](../../../src/Tables/AuxData.php#L94-L120) +#### [`getAuxDataForActor`](../../../src/Tables/AuxData.php#L91-L117) Returns `array` @@ -156,7 +156,7 @@ Returns `array` **Throws:** `DateMalformedStringException` -#### [`getAuxDataById`](../../../src/Tables/AuxData.php#L133-L180) +#### [`getAuxDataById`](../../../src/Tables/AuxData.php#L130-L177) **API** · Returns `array` @@ -167,7 +167,7 @@ Returns `array` **Throws:** `CipherSweetException`, `CryptoOperationException`, `DateMalformedStringException`, `InvalidCiphertextException`, `JsonException`, `SodiumException` -#### [`addAuxData`](../../../src/Tables/AuxData.php#L192-L199) +#### [`addAuxData`](../../../src/Tables/AuxData.php#L189-L196) Returns `bool` @@ -178,7 +178,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`revokeAuxData`](../../../src/Tables/AuxData.php#L318-L326) +#### [`revokeAuxData`](../../../src/Tables/AuxData.php#L315-L323) Returns `bool` @@ -430,17 +430,17 @@ Insert leaf with retry logic for deadlocks ### Methods -#### [`getCipher`](../../../src/Tables/Peers.php#L38-L41) +#### [`getCipher`](../../../src/Tables/Peers.php#L37-L40) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getNextPeerId`](../../../src/Tables/Peers.php#L49-L56) +#### [`getNextPeerId`](../../../src/Tables/Peers.php#L48-L55) Returns `int` -#### [`create`](../../../src/Tables/Peers.php#L64-L97) +#### [`create`](../../../src/Tables/Peers.php#L63-L96) **API** · Returns `FediE2EE\PKDServer\Tables\Records\Peer` @@ -454,7 +454,7 @@ Returns `int` **Throws:** `TableException`, `RandomException` -#### [`getPeerByUniqueId`](../../../src/Tables/Peers.php#L107-L118) +#### [`getPeerByUniqueId`](../../../src/Tables/Peers.php#L106-L117) **API** · Returns `FediE2EE\PKDServer\Tables\Records\Peer` @@ -464,7 +464,7 @@ Returns `int` **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException`, `TableException` -#### [`getPeer`](../../../src/Tables/Peers.php#L126-L138) +#### [`getPeer`](../../../src/Tables/Peers.php#L125-L137) Returns `FediE2EE\PKDServer\Tables\Records\Peer` @@ -474,13 +474,13 @@ Returns `FediE2EE\PKDServer\Tables\Records\Peer` **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException`, `TableException` -#### [`listAll`](../../../src/Tables/Peers.php#L180-L189) +#### [`listAll`](../../../src/Tables/Peers.php#L179-L188) **API** · Returns `array` **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException` -#### [`listReplicatingPeers`](../../../src/Tables/Peers.php#L200-L209) +#### [`listReplicatingPeers`](../../../src/Tables/Peers.php#L199-L208) Returns `array` @@ -488,7 +488,7 @@ Lists which peers we replicate. **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException` -#### [`save`](../../../src/Tables/Peers.php#L215-L224) +#### [`save`](../../../src/Tables/Peers.php#L214-L223) Returns `bool` @@ -498,13 +498,13 @@ Returns `bool` **Throws:** `JsonException`, `TableException` -#### [`getRewrapCandidates`](../../../src/Tables/Peers.php#L233-L251) +#### [`getRewrapCandidates`](../../../src/Tables/Peers.php#L232-L250) Returns `array` **Throws:** `CryptoException`, `DateMalformedStringException`, `SodiumException` -#### [`rewrapKeyMap`](../../../src/Tables/Peers.php#L258-L305) +#### [`rewrapKeyMap`](../../../src/Tables/Peers.php#L257-L304) Returns `void` @@ -530,19 +530,19 @@ Returns `void` ### Methods -#### [`getCipher`](../../../src/Tables/PublicKeys.php#L80-L94) +#### [`getCipher`](../../../src/Tables/PublicKeys.php#L74-L88) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`generateKeyID`](../../../src/Tables/PublicKeys.php#L99-L102) +#### [`generateKeyID`](../../../src/Tables/PublicKeys.php#L93-L96) Returns `string` **Throws:** `RandomException` -#### [`lookup`](../../../src/Tables/PublicKeys.php#L131-L179) +#### [`lookup`](../../../src/Tables/PublicKeys.php#L125-L173) Returns `array` @@ -553,7 +553,7 @@ Returns `array` **Throws:** `BaseJsonException`, `CipherSweetException`, `CryptoOperationException`, `DateMalformedStringException`, `InvalidCiphertextException`, `SodiumException` -#### [`getRecord`](../../../src/Tables/PublicKeys.php#L194-L227) +#### [`getRecord`](../../../src/Tables/PublicKeys.php#L188-L221) Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` @@ -563,7 +563,7 @@ Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` **Throws:** `CacheException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `DependencyException`, `InvalidCiphertextException`, `SodiumException`, `TableException` -#### [`getPublicKeysFor`](../../../src/Tables/PublicKeys.php#L244-L310) +#### [`getPublicKeysFor`](../../../src/Tables/PublicKeys.php#L238-L304) Returns `array` @@ -574,11 +574,11 @@ Returns `array` **Throws:** `ArrayKeyException`, `BaseJsonException`, `BlindIndexNotFoundException`, `CacheException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `DateMalformedStringException`, `DependencyException`, `InvalidCiphertextException`, `SodiumException`, `TableException` -#### [`getNextPrimaryKey`](../../../src/Tables/PublicKeys.php#L312-L319) +#### [`getNextPrimaryKey`](../../../src/Tables/PublicKeys.php#L306-L313) Returns `int` -#### [`addKey`](../../../src/Tables/PublicKeys.php#L417-L425) +#### [`addKey`](../../../src/Tables/PublicKeys.php#L411-L419) Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` @@ -589,7 +589,7 @@ Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`revokeKey`](../../../src/Tables/PublicKeys.php#L437-L445) +#### [`revokeKey`](../../../src/Tables/PublicKeys.php#L431-L439) Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` @@ -600,7 +600,7 @@ Returns `FediE2EE\PKDServer\Tables\Records\ActorKey` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`revokeKeyThirdParty`](../../../src/Tables/PublicKeys.php#L457-L465) +#### [`revokeKeyThirdParty`](../../../src/Tables/PublicKeys.php#L451-L459) Returns `bool` @@ -610,7 +610,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`moveIdentity`](../../../src/Tables/PublicKeys.php#L477-L485) +#### [`moveIdentity`](../../../src/Tables/PublicKeys.php#L471-L479) Returns `bool` @@ -621,7 +621,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`burnDown`](../../../src/Tables/PublicKeys.php#L850-L858) +#### [`burnDown`](../../../src/Tables/PublicKeys.php#L844-L852) Returns `bool` @@ -632,7 +632,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`fireproof`](../../../src/Tables/PublicKeys.php#L961-L969) +#### [`fireproof`](../../../src/Tables/PublicKeys.php#L955-L963) Returns `bool` @@ -643,7 +643,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`undoFireproof`](../../../src/Tables/PublicKeys.php#L1044-L1052) +#### [`undoFireproof`](../../../src/Tables/PublicKeys.php#L1038-L1046) Returns `bool` @@ -654,7 +654,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`checkpoint`](../../../src/Tables/PublicKeys.php#L1127-L1135) +#### [`checkpoint`](../../../src/Tables/PublicKeys.php#L1121-L1129) Returns `bool` @@ -664,7 +664,7 @@ Returns `bool` **Throws:** `ConcurrentException`, `CryptoException`, `DependencyException`, `NotImplementedException`, `ProtocolException`, `RandomException`, `SodiumException`, `TableException` -#### [`jsonDecode`](../../../src/Tables/PublicKeys.php#L16-L19) +#### [`jsonDecode`](../../../src/Tables/PublicKeys.php#L15-L18) static · Returns `array` @@ -674,7 +674,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Tables/PublicKeys.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Tables/PublicKeys.php#L23-L26) static · Returns `stdClass` @@ -684,7 +684,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Tables/PublicKeys.php#L33-L39) +#### [`jsonEncode`](../../../src/Tables/PublicKeys.php#L32-L38) static · Returns `string` @@ -694,7 +694,7 @@ static · Returns `string` **Throws:** `BaseJsonException` -#### [`verifyTOTP`](../../../src/Tables/PublicKeys.php#L57-L71) +#### [`verifyTOTP`](../../../src/Tables/PublicKeys.php#L49-L63) static · Returns `?int` @@ -704,7 +704,7 @@ static · Returns `?int` - `$otp`: `string` - `$windows`: `int` = 2 -#### [`generateTOTP`](../../../src/Tables/PublicKeys.php#L73-L89) +#### [`generateTOTP`](../../../src/Tables/PublicKeys.php#L65-L81) static · Returns `string` @@ -713,7 +713,7 @@ static · Returns `string` - `$secret`: `string` - `$time`: `?int` = null -#### [`ord`](../../../src/Tables/PublicKeys.php#L94-L98) +#### [`ord`](../../../src/Tables/PublicKeys.php#L86-L90) static · Returns `int` @@ -723,7 +723,7 @@ Avoid cache-timing leaks in ord() by using unpack() - `$chr`: `string` -#### [`throwIfTimeOutsideWindow`](../../../src/Tables/PublicKeys.php#L159-L168) +#### [`throwIfTimeOutsideWindow`](../../../src/Tables/PublicKeys.php#L151-L160) Returns `void` @@ -855,17 +855,17 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`getCipher`](../../../src/Tables/ReplicaActors.php#L33-L46) +#### [`getCipher`](../../../src/Tables/ReplicaActors.php#L32-L45) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getNextPrimaryKey`](../../../src/Tables/ReplicaActors.php#L71-L78) +#### [`getNextPrimaryKey`](../../../src/Tables/ReplicaActors.php#L70-L77) Returns `int` -#### [`searchForActor`](../../../src/Tables/ReplicaActors.php#L89-L118) +#### [`searchForActor`](../../../src/Tables/ReplicaActors.php#L88-L117) Returns `?FediE2EE\PKDServer\Tables\Records\ReplicaActor` @@ -876,7 +876,7 @@ Returns `?FediE2EE\PKDServer\Tables\Records\ReplicaActor` **Throws:** `ArrayKeyException`, `BlindIndexNotFoundException`, `CipherSweetException`, `CryptoException`, `CryptoOperationException`, `InvalidCiphertextException`, `SodiumException` -#### [`getCounts`](../../../src/Tables/ReplicaActors.php#L123-L143) +#### [`getCounts`](../../../src/Tables/ReplicaActors.php#L122-L142) Returns `array` @@ -885,7 +885,7 @@ Returns `array` - `$peerID`: `int` - `$actorID`: `int` -#### [`createForPeer`](../../../src/Tables/ReplicaActors.php#L152-L175) +#### [`createForPeer`](../../../src/Tables/ReplicaActors.php#L151-L174) Returns `int` @@ -898,7 +898,7 @@ Returns `int` **Throws:** `ArrayKeyException`, `CipherSweetException`, `CryptoOperationException`, `SodiumException`, `TableException` -#### [`createSimpleForPeer`](../../../src/Tables/ReplicaActors.php#L189-L208) +#### [`createSimpleForPeer`](../../../src/Tables/ReplicaActors.php#L188-L207) Returns `int` @@ -926,13 +926,13 @@ Used when replicating from source server where we have decrypted data. ### Methods -#### [`getCipher`](../../../src/Tables/ReplicaAuxData.php#L28-L39) +#### [`getCipher`](../../../src/Tables/ReplicaAuxData.php#L25-L36) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getAuxDataForActor`](../../../src/Tables/ReplicaAuxData.php#L60-L86) +#### [`getAuxDataForActor`](../../../src/Tables/ReplicaAuxData.php#L57-L83) Returns `array` @@ -943,7 +943,7 @@ Returns `array` **Throws:** `DateMalformedStringException` -#### [`getAuxDataById`](../../../src/Tables/ReplicaAuxData.php#L97-L153) +#### [`getAuxDataById`](../../../src/Tables/ReplicaAuxData.php#L94-L150) Returns `array` @@ -967,13 +967,13 @@ Returns `array` ### Methods -#### [`getCipher`](../../../src/Tables/ReplicaHistory.php#L22-L25) +#### [`getCipher`](../../../src/Tables/ReplicaHistory.php#L21-L24) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`createLeaf`](../../../src/Tables/ReplicaHistory.php#L36-L52) +#### [`createLeaf`](../../../src/Tables/ReplicaHistory.php#L35-L51) Returns `FediE2EE\PKDServer\Tables\Records\ReplicaLeaf` @@ -983,7 +983,7 @@ Returns `FediE2EE\PKDServer\Tables\Records\ReplicaLeaf` - `$cosignature`: `string` - `$proof`: `FediE2EE\PKD\Crypto\Merkle\InclusionProof` -#### [`save`](../../../src/Tables/ReplicaHistory.php#L58-L66) +#### [`save`](../../../src/Tables/ReplicaHistory.php#L57-L65) Returns `void` @@ -994,7 +994,7 @@ Returns `void` **Throws:** `JsonException`, `TableException` -#### [`getHistory`](../../../src/Tables/ReplicaHistory.php#L72-L83) +#### [`getHistory`](../../../src/Tables/ReplicaHistory.php#L71-L82) Returns `array` @@ -1006,7 +1006,7 @@ Returns `array` **Throws:** `JsonException` -#### [`getHistorySince`](../../../src/Tables/ReplicaHistory.php#L89-L109) +#### [`getHistorySince`](../../../src/Tables/ReplicaHistory.php#L88-L108) Returns `array` @@ -1031,13 +1031,13 @@ Returns `array` ### Methods -#### [`getCipher`](../../../src/Tables/ReplicaPublicKeys.php#L29-L40) +#### [`getCipher`](../../../src/Tables/ReplicaPublicKeys.php#L26-L37) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`lookup`](../../../src/Tables/ReplicaPublicKeys.php#L66-L121) +#### [`lookup`](../../../src/Tables/ReplicaPublicKeys.php#L63-L118) Returns `array` @@ -1049,7 +1049,7 @@ Returns `array` **Throws:** `CipherSweetException`, `CryptoOperationException`, `DateMalformedStringException`, `InvalidCiphertextException`, `JsonException`, `SodiumException` -#### [`getPublicKeysFor`](../../../src/Tables/ReplicaPublicKeys.php#L132-L182) +#### [`getPublicKeysFor`](../../../src/Tables/ReplicaPublicKeys.php#L129-L179) Returns `array` @@ -1073,13 +1073,13 @@ Returns `array` ### Methods -#### [`getCipher`](../../../src/Tables/TOTP.php#L27-L35) +#### [`getCipher`](../../../src/Tables/TOTP.php#L25-L33) Returns `FediE2EE\PKDServer\Dependency\WrappedEncryptedRow` **Attributes:** `#[Override]` -#### [`getSecretByDomain`](../../../src/Tables/TOTP.php#L67-L74) +#### [`getSecretByDomain`](../../../src/Tables/TOTP.php#L65-L72) Returns `?string` @@ -1089,7 +1089,7 @@ Returns `?string` **Throws:** `CipherSweetException`, `CryptoOperationException`, `InvalidCiphertextException`, `SodiumException` -#### [`getTotpByDomain`](../../../src/Tables/TOTP.php#L83-L99) +#### [`getTotpByDomain`](../../../src/Tables/TOTP.php#L81-L97) Returns `?array` @@ -1099,7 +1099,7 @@ Returns `?array` **Throws:** `CipherSweetException`, `CryptoOperationException`, `InvalidCiphertextException`, `SodiumException` -#### [`saveSecret`](../../../src/Tables/TOTP.php#L109-L127) +#### [`saveSecret`](../../../src/Tables/TOTP.php#L107-L125) Returns `void` @@ -1111,7 +1111,7 @@ Returns `void` **Throws:** `ArrayKeyException`, `CipherSweetException`, `CryptoOperationException`, `RandomException`, `SodiumException`, `TableException` -#### [`deleteSecret`](../../../src/Tables/TOTP.php#L129-L132) +#### [`deleteSecret`](../../../src/Tables/TOTP.php#L127-L130) Returns `void` @@ -1119,7 +1119,7 @@ Returns `void` - `$domain`: `string` -#### [`updateSecret`](../../../src/Tables/TOTP.php#L142-L179) +#### [`updateSecret`](../../../src/Tables/TOTP.php#L140-L177) Returns `void` @@ -1131,7 +1131,7 @@ Returns `void` **Throws:** `ArrayKeyException`, `CipherSweetException`, `CryptoOperationException`, `SodiumException`, `TableException`, `RandomException` -#### [`updateLastTimeStep`](../../../src/Tables/TOTP.php#L181-L188) +#### [`updateLastTimeStep`](../../../src/Tables/TOTP.php#L179-L186) Returns `void` diff --git a/docs/reference/classes/traits.md b/docs/reference/classes/traits.md index 462a4aa..0efe5b6 100644 --- a/docs/reference/classes/traits.md +++ b/docs/reference/classes/traits.md @@ -33,7 +33,7 @@ Namespace: `FediE2EE\PKDServer\Traits` ### Methods -#### [`getVerifiedStream`](../../../src/Traits/ActivityStreamsTrait.php#L41-L64) +#### [`getVerifiedStream`](../../../src/Traits/ActivityStreamsTrait.php#L39-L62) Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` @@ -43,7 +43,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\ActivityStream` **Throws:** `ActivityPubException`, `CertaintyException`, `CryptoException`, `DependencyException`, `FetchException`, `HttpSignatureException`, `InvalidArgumentException`, `NotImplementedException`, `SodiumException` -#### [`appCache`](../../../src/Traits/ActivityStreamsTrait.php#L54-L57) +#### [`appCache`](../../../src/Traits/ActivityStreamsTrait.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -54,7 +54,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Traits/ActivityStreamsTrait.php#L64-L87) +#### [`table`](../../../src/Traits/ActivityStreamsTrait.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -64,7 +64,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Traits/ActivityStreamsTrait.php#L89-L92) +#### [`injectConfig`](../../../src/Traits/ActivityStreamsTrait.php#L81-L84) Returns `void` @@ -72,13 +72,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Traits/ActivityStreamsTrait.php#L97-L107) +#### [`config`](../../../src/Traits/ActivityStreamsTrait.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Traits/ActivityStreamsTrait.php#L112-L116) +#### [`setWebFinger`](../../../src/Traits/ActivityStreamsTrait.php#L104-L108) Returns `self` @@ -88,7 +88,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Traits/ActivityStreamsTrait.php#L123-L130) +#### [`webfinger`](../../../src/Traits/ActivityStreamsTrait.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -98,7 +98,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Traits/ActivityStreamsTrait.php#L136-L143) +#### [`parseUrlHost`](../../../src/Traits/ActivityStreamsTrait.php#L128-L135) static · Returns `?string` @@ -106,7 +106,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Traits/ActivityStreamsTrait.php#L151-L157) +#### [`assertArray`](../../../src/Traits/ActivityStreamsTrait.php#L143-L149) static · Returns `array` @@ -116,7 +116,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Traits/ActivityStreamsTrait.php#L162-L168) +#### [`assertString`](../../../src/Traits/ActivityStreamsTrait.php#L154-L160) static · Returns `string` @@ -126,7 +126,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Traits/ActivityStreamsTrait.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Traits/ActivityStreamsTrait.php#L162-L171) static · Returns `?string` @@ -134,7 +134,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Traits/ActivityStreamsTrait.php#L184-L193) +#### [`assertInt`](../../../src/Traits/ActivityStreamsTrait.php#L176-L185) static · Returns `int` @@ -144,7 +144,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Traits/ActivityStreamsTrait.php#L200-L210) +#### [`rowToStringArray`](../../../src/Traits/ActivityStreamsTrait.php#L192-L202) static · Returns `array` @@ -154,7 +154,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Traits/ActivityStreamsTrait.php#L216-L226) +#### [`decryptedString`](../../../src/Traits/ActivityStreamsTrait.php#L208-L218) static · Returns `string` @@ -165,7 +165,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Traits/ActivityStreamsTrait.php#L233-L243) +#### [`blindIndexValue`](../../../src/Traits/ActivityStreamsTrait.php#L225-L235) static · Returns `string` @@ -174,7 +174,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Traits/ActivityStreamsTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/ActivityStreamsTrait.php#L15-L18) static · Returns `array` @@ -184,7 +184,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/ActivityStreamsTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/ActivityStreamsTrait.php#L23-L26) static · Returns `stdClass` @@ -194,7 +194,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/ActivityStreamsTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/ActivityStreamsTrait.php#L32-L38) static · Returns `string` @@ -353,7 +353,7 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`appCache`](../../../src/Traits/ConfigTrait.php#L54-L57) +#### [`appCache`](../../../src/Traits/ConfigTrait.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -364,7 +364,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Traits/ConfigTrait.php#L64-L87) +#### [`table`](../../../src/Traits/ConfigTrait.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -374,7 +374,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Traits/ConfigTrait.php#L89-L92) +#### [`injectConfig`](../../../src/Traits/ConfigTrait.php#L81-L84) Returns `void` @@ -382,13 +382,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Traits/ConfigTrait.php#L97-L107) +#### [`config`](../../../src/Traits/ConfigTrait.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Traits/ConfigTrait.php#L112-L116) +#### [`setWebFinger`](../../../src/Traits/ConfigTrait.php#L104-L108) Returns `self` @@ -398,7 +398,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Traits/ConfigTrait.php#L123-L130) +#### [`webfinger`](../../../src/Traits/ConfigTrait.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -408,7 +408,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Traits/ConfigTrait.php#L136-L143) +#### [`parseUrlHost`](../../../src/Traits/ConfigTrait.php#L128-L135) static · Returns `?string` @@ -416,7 +416,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Traits/ConfigTrait.php#L151-L157) +#### [`assertArray`](../../../src/Traits/ConfigTrait.php#L143-L149) static · Returns `array` @@ -426,7 +426,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Traits/ConfigTrait.php#L162-L168) +#### [`assertString`](../../../src/Traits/ConfigTrait.php#L154-L160) static · Returns `string` @@ -436,7 +436,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Traits/ConfigTrait.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Traits/ConfigTrait.php#L162-L171) static · Returns `?string` @@ -444,7 +444,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Traits/ConfigTrait.php#L184-L193) +#### [`assertInt`](../../../src/Traits/ConfigTrait.php#L176-L185) static · Returns `int` @@ -454,7 +454,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Traits/ConfigTrait.php#L200-L210) +#### [`rowToStringArray`](../../../src/Traits/ConfigTrait.php#L192-L202) static · Returns `array` @@ -464,7 +464,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Traits/ConfigTrait.php#L216-L226) +#### [`decryptedString`](../../../src/Traits/ConfigTrait.php#L208-L218) static · Returns `string` @@ -475,7 +475,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Traits/ConfigTrait.php#L233-L243) +#### [`blindIndexValue`](../../../src/Traits/ConfigTrait.php#L225-L235) static · Returns `string` @@ -484,7 +484,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Traits/ConfigTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/ConfigTrait.php#L15-L18) static · Returns `array` @@ -494,7 +494,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/ConfigTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/ConfigTrait.php#L23-L26) static · Returns `stdClass` @@ -504,7 +504,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/ConfigTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/ConfigTrait.php#L32-L38) static · Returns `string` @@ -538,11 +538,11 @@ Returns `bool` **Throws:** `DependencyException` -#### [`time`](../../../src/Traits/HttpCacheTrait.php#L38-L41) +#### [`time`](../../../src/Traits/HttpCacheTrait.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/Traits/HttpCacheTrait.php#L52-L60) +#### [`canonicalizeActor`](../../../src/Traits/HttpCacheTrait.php#L51-L59) Returns `string` @@ -552,7 +552,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/Traits/HttpCacheTrait.php#L68-L71) +#### [`error`](../../../src/Traits/HttpCacheTrait.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -563,7 +563,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/Traits/HttpCacheTrait.php#L82-L93) +#### [`signResponse`](../../../src/Traits/HttpCacheTrait.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -575,7 +575,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/Traits/HttpCacheTrait.php#L105-L124) +#### [`json`](../../../src/Traits/HttpCacheTrait.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -589,7 +589,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/Traits/HttpCacheTrait.php#L134-L151) +#### [`twig`](../../../src/Traits/HttpCacheTrait.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -602,7 +602,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/Traits/HttpCacheTrait.php#L54-L57) +#### [`appCache`](../../../src/Traits/HttpCacheTrait.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -613,7 +613,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Traits/HttpCacheTrait.php#L64-L87) +#### [`table`](../../../src/Traits/HttpCacheTrait.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -623,7 +623,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Traits/HttpCacheTrait.php#L89-L92) +#### [`injectConfig`](../../../src/Traits/HttpCacheTrait.php#L81-L84) Returns `void` @@ -631,13 +631,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Traits/HttpCacheTrait.php#L97-L107) +#### [`config`](../../../src/Traits/HttpCacheTrait.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Traits/HttpCacheTrait.php#L112-L116) +#### [`setWebFinger`](../../../src/Traits/HttpCacheTrait.php#L104-L108) Returns `self` @@ -647,7 +647,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Traits/HttpCacheTrait.php#L123-L130) +#### [`webfinger`](../../../src/Traits/HttpCacheTrait.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -657,7 +657,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Traits/HttpCacheTrait.php#L136-L143) +#### [`parseUrlHost`](../../../src/Traits/HttpCacheTrait.php#L128-L135) static · Returns `?string` @@ -665,7 +665,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Traits/HttpCacheTrait.php#L151-L157) +#### [`assertArray`](../../../src/Traits/HttpCacheTrait.php#L143-L149) static · Returns `array` @@ -675,7 +675,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Traits/HttpCacheTrait.php#L162-L168) +#### [`assertString`](../../../src/Traits/HttpCacheTrait.php#L154-L160) static · Returns `string` @@ -685,7 +685,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Traits/HttpCacheTrait.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Traits/HttpCacheTrait.php#L162-L171) static · Returns `?string` @@ -693,7 +693,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Traits/HttpCacheTrait.php#L184-L193) +#### [`assertInt`](../../../src/Traits/HttpCacheTrait.php#L176-L185) static · Returns `int` @@ -703,7 +703,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Traits/HttpCacheTrait.php#L200-L210) +#### [`rowToStringArray`](../../../src/Traits/HttpCacheTrait.php#L192-L202) static · Returns `array` @@ -713,7 +713,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Traits/HttpCacheTrait.php#L216-L226) +#### [`decryptedString`](../../../src/Traits/HttpCacheTrait.php#L208-L218) static · Returns `string` @@ -724,7 +724,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Traits/HttpCacheTrait.php#L233-L243) +#### [`blindIndexValue`](../../../src/Traits/HttpCacheTrait.php#L225-L235) static · Returns `string` @@ -733,7 +733,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Traits/HttpCacheTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/HttpCacheTrait.php#L15-L18) static · Returns `array` @@ -743,7 +743,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/HttpCacheTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/HttpCacheTrait.php#L23-L26) static · Returns `stdClass` @@ -753,7 +753,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/HttpCacheTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/HttpCacheTrait.php#L32-L38) static · Returns `string` @@ -773,7 +773,7 @@ static · Returns `string` ### Methods -#### [`jsonDecode`](../../../src/Traits/JsonTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/JsonTrait.php#L15-L18) static · Returns `array` @@ -783,7 +783,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/JsonTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/JsonTrait.php#L23-L26) static · Returns `stdClass` @@ -793,7 +793,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/JsonTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/JsonTrait.php#L32-L38) static · Returns `string` @@ -917,11 +917,11 @@ Request Handler trait ### Methods -#### [`time`](../../../src/Traits/ReqTrait.php#L38-L41) +#### [`time`](../../../src/Traits/ReqTrait.php#L37-L40) Returns `string` -#### [`canonicalizeActor`](../../../src/Traits/ReqTrait.php#L52-L60) +#### [`canonicalizeActor`](../../../src/Traits/ReqTrait.php#L51-L59) Returns `string` @@ -931,7 +931,7 @@ Returns `string` **Throws:** `CacheException`, `CertaintyException`, `DependencyException`, `GuzzleException`, `InvalidArgumentException`, `NetworkException`, `SodiumException` -#### [`error`](../../../src/Traits/ReqTrait.php#L68-L71) +#### [`error`](../../../src/Traits/ReqTrait.php#L67-L70) Returns `Psr\Http\Message\ResponseInterface` @@ -942,7 +942,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `BaseJsonException`, `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`signResponse`](../../../src/Traits/ReqTrait.php#L82-L93) +#### [`signResponse`](../../../src/Traits/ReqTrait.php#L81-L92) Returns `Psr\Http\Message\ResponseInterface` @@ -954,7 +954,7 @@ Implements an RFC 9421 HTTP Message Signature with Ed25519. **Throws:** `DependencyException`, `NotImplementedException`, `SodiumException` -#### [`json`](../../../src/Traits/ReqTrait.php#L105-L124) +#### [`json`](../../../src/Traits/ReqTrait.php#L104-L123) Returns `Psr\Http\Message\ResponseInterface` @@ -968,7 +968,7 @@ Return a JSON response with HTTP Message Signature (from signResponse()) **Throws:** `DependencyException`, `BaseJsonException`, `NotImplementedException`, `SodiumException` -#### [`twig`](../../../src/Traits/ReqTrait.php#L134-L151) +#### [`twig`](../../../src/Traits/ReqTrait.php#L133-L150) Returns `Psr\Http\Message\ResponseInterface` @@ -981,7 +981,7 @@ Returns `Psr\Http\Message\ResponseInterface` **Throws:** `DependencyException`, `LoaderError`, `RuntimeError`, `SyntaxError` -#### [`appCache`](../../../src/Traits/ReqTrait.php#L54-L57) +#### [`appCache`](../../../src/Traits/ReqTrait.php#L46-L49) Returns `FediE2EE\PKDServer\AppCache` @@ -992,7 +992,7 @@ Returns `FediE2EE\PKDServer\AppCache` **Throws:** `DependencyException` -#### [`table`](../../../src/Traits/ReqTrait.php#L64-L87) +#### [`table`](../../../src/Traits/ReqTrait.php#L56-L79) Returns `FediE2EE\PKDServer\Table` @@ -1002,7 +1002,7 @@ Returns `FediE2EE\PKDServer\Table` **Throws:** `CacheException`, `DependencyException`, `TableException` -#### [`injectConfig`](../../../src/Traits/ReqTrait.php#L89-L92) +#### [`injectConfig`](../../../src/Traits/ReqTrait.php#L81-L84) Returns `void` @@ -1010,13 +1010,13 @@ Returns `void` - `$config`: `FediE2EE\PKDServer\ServerConfig` -#### [`config`](../../../src/Traits/ReqTrait.php#L97-L107) +#### [`config`](../../../src/Traits/ReqTrait.php#L89-L99) Returns `FediE2EE\PKDServer\ServerConfig` **Throws:** `DependencyException` -#### [`setWebFinger`](../../../src/Traits/ReqTrait.php#L112-L116) +#### [`setWebFinger`](../../../src/Traits/ReqTrait.php#L104-L108) Returns `self` @@ -1026,7 +1026,7 @@ This is intended for mocking in unit tests - `$wf`: `FediE2EE\PKDServer\ActivityPub\WebFinger` -#### [`webfinger`](../../../src/Traits/ReqTrait.php#L123-L130) +#### [`webfinger`](../../../src/Traits/ReqTrait.php#L115-L122) Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` @@ -1036,7 +1036,7 @@ Returns `FediE2EE\PKDServer\ActivityPub\WebFinger` **Throws:** `CertaintyException`, `DependencyException`, `SodiumException` -#### [`parseUrlHost`](../../../src/Traits/ReqTrait.php#L136-L143) +#### [`parseUrlHost`](../../../src/Traits/ReqTrait.php#L128-L135) static · Returns `?string` @@ -1044,7 +1044,7 @@ static · Returns `?string` - `$url`: `string` -#### [`assertArray`](../../../src/Traits/ReqTrait.php#L151-L157) +#### [`assertArray`](../../../src/Traits/ReqTrait.php#L143-L149) static · Returns `array` @@ -1054,7 +1054,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`assertString`](../../../src/Traits/ReqTrait.php#L162-L168) +#### [`assertString`](../../../src/Traits/ReqTrait.php#L154-L160) static · Returns `string` @@ -1064,7 +1064,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`assertStringOrNull`](../../../src/Traits/ReqTrait.php#L170-L179) +#### [`assertStringOrNull`](../../../src/Traits/ReqTrait.php#L162-L171) static · Returns `?string` @@ -1072,7 +1072,7 @@ static · Returns `?string` - `$value`: `mixed` -#### [`assertInt`](../../../src/Traits/ReqTrait.php#L184-L193) +#### [`assertInt`](../../../src/Traits/ReqTrait.php#L176-L185) static · Returns `int` @@ -1082,7 +1082,7 @@ static · Returns `int` **Throws:** `TypeError` -#### [`rowToStringArray`](../../../src/Traits/ReqTrait.php#L200-L210) +#### [`rowToStringArray`](../../../src/Traits/ReqTrait.php#L192-L202) static · Returns `array` @@ -1092,7 +1092,7 @@ static · Returns `array` **Throws:** `TypeError` -#### [`decryptedString`](../../../src/Traits/ReqTrait.php#L216-L226) +#### [`decryptedString`](../../../src/Traits/ReqTrait.php#L208-L218) static · Returns `string` @@ -1103,7 +1103,7 @@ static · Returns `string` **Throws:** `TypeError` -#### [`blindIndexValue`](../../../src/Traits/ReqTrait.php#L233-L243) +#### [`blindIndexValue`](../../../src/Traits/ReqTrait.php#L225-L235) static · Returns `string` @@ -1112,7 +1112,7 @@ static · Returns `string` - `$blindIndex`: `array|string` - `$key`: `?string` = null -#### [`jsonDecode`](../../../src/Traits/ReqTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/ReqTrait.php#L15-L18) static · Returns `array` @@ -1122,7 +1122,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/ReqTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/ReqTrait.php#L23-L26) static · Returns `stdClass` @@ -1132,7 +1132,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/ReqTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/ReqTrait.php#L32-L38) static · Returns `string` @@ -1154,7 +1154,7 @@ static · Returns `string` ### Methods -#### [`verifyTOTP`](../../../src/Traits/TOTPTrait.php#L57-L71) +#### [`verifyTOTP`](../../../src/Traits/TOTPTrait.php#L49-L63) static · Returns `?int` @@ -1164,7 +1164,7 @@ static · Returns `?int` - `$otp`: `string` - `$windows`: `int` = 2 -#### [`generateTOTP`](../../../src/Traits/TOTPTrait.php#L73-L89) +#### [`generateTOTP`](../../../src/Traits/TOTPTrait.php#L65-L81) static · Returns `string` @@ -1173,7 +1173,7 @@ static · Returns `string` - `$secret`: `string` - `$time`: `?int` = null -#### [`ord`](../../../src/Traits/TOTPTrait.php#L94-L98) +#### [`ord`](../../../src/Traits/TOTPTrait.php#L86-L90) static · Returns `int` @@ -1183,7 +1183,7 @@ Avoid cache-timing leaks in ord() by using unpack() - `$chr`: `string` -#### [`throwIfTimeOutsideWindow`](../../../src/Traits/TOTPTrait.php#L159-L168) +#### [`throwIfTimeOutsideWindow`](../../../src/Traits/TOTPTrait.php#L151-L160) Returns `void` @@ -1193,7 +1193,7 @@ Returns `void` **Throws:** `DependencyException`, `ProtocolException` -#### [`jsonDecode`](../../../src/Traits/TOTPTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/TOTPTrait.php#L15-L18) static · Returns `array` @@ -1203,7 +1203,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/TOTPTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/TOTPTrait.php#L23-L26) static · Returns `stdClass` @@ -1213,7 +1213,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/TOTPTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/TOTPTrait.php#L32-L38) static · Returns `string` @@ -1352,17 +1352,17 @@ Strip all newlines (CR, LF) characters from a string. ### Methods -#### [`hasPrimaryKey`](../../../src/Traits/TableRecordTrait.php#L38-L41) +#### [`hasPrimaryKey`](../../../src/Traits/TableRecordTrait.php#L36-L39) Returns `bool` -#### [`getPrimaryKey`](../../../src/Traits/TableRecordTrait.php#L47-L53) +#### [`getPrimaryKey`](../../../src/Traits/TableRecordTrait.php#L45-L51) Returns `int` **Throws:** `TableException` -#### [`attachSymmetricKey`](../../../src/Traits/TableRecordTrait.php#L59-L69) +#### [`attachSymmetricKey`](../../../src/Traits/TableRecordTrait.php#L57-L67) Returns `self` @@ -1373,7 +1373,7 @@ Returns `self` **Throws:** `TableException` -#### [`getSymmetricKeyForProperty`](../../../src/Traits/TableRecordTrait.php#L75-L84) +#### [`getSymmetricKeyForProperty`](../../../src/Traits/TableRecordTrait.php#L73-L82) Returns `FediE2EE\PKD\Crypto\SymmetricKey` @@ -1383,11 +1383,11 @@ Returns `FediE2EE\PKD\Crypto\SymmetricKey` **Throws:** `TableException` -#### [`getSymmetricKeys`](../../../src/Traits/TableRecordTrait.php#L89-L92) +#### [`getSymmetricKeys`](../../../src/Traits/TableRecordTrait.php#L87-L90) Returns `array` -#### [`getRfc9421PublicKeys`](../../../src/Traits/TableRecordTrait.php#L108-L111) +#### [`getRfc9421PublicKeys`](../../../src/Traits/TableRecordTrait.php#L106-L109) Returns `FediE2EE\PKD\Crypto\PublicKey` @@ -1401,7 +1401,7 @@ If multiple are returned (e.g., via FEP-521a), this will cycle through them unti **Throws:** `CryptoException`, `FetchException`, `InvalidArgumentException`, `SodiumException` -#### [`jsonDecode`](../../../src/Traits/TableRecordTrait.php#L16-L19) +#### [`jsonDecode`](../../../src/Traits/TableRecordTrait.php#L15-L18) static · Returns `array` @@ -1411,7 +1411,7 @@ static · Returns `array` **Throws:** `BaseJsonException` -#### [`jsonDecodeObject`](../../../src/Traits/TableRecordTrait.php#L24-L27) +#### [`jsonDecodeObject`](../../../src/Traits/TableRecordTrait.php#L23-L26) static · Returns `stdClass` @@ -1421,7 +1421,7 @@ static · Returns `stdClass` **Throws:** `BaseJsonException` -#### [`jsonEncode`](../../../src/Traits/TableRecordTrait.php#L33-L39) +#### [`jsonEncode`](../../../src/Traits/TableRecordTrait.php#L32-L38) static · Returns `string` diff --git a/src/ActivityPub/ActivityStream.php b/src/ActivityPub/ActivityStream.php index 2a84820..144b098 100644 --- a/src/ActivityPub/ActivityStream.php +++ b/src/ActivityPub/ActivityStream.php @@ -9,11 +9,7 @@ use JsonSerializable; use Override; use stdClass; -use function in_array; -use function is_array; -use function is_string; -use function json_decode; -use function property_exists; +use function in_array, is_array, is_string, json_decode, property_exists; #[AllowDynamicProperties] class ActivityStream implements JsonSerializable diff --git a/src/ActivityPub/WebFinger.php b/src/ActivityPub/WebFinger.php index 298066a..235c43f 100644 --- a/src/ActivityPub/WebFinger.php +++ b/src/ActivityPub/WebFinger.php @@ -24,20 +24,20 @@ }; use Psr\SimpleCache\InvalidArgumentException; use SodiumException; -use function array_key_exists; -use function explode; -use function is_array; -use function is_null; -use function is_object; -use function json_decode; -use function json_last_error_msg; -use function ltrim; -use function parse_url; -use function property_exists; -use function str_replace; -use function str_starts_with; -use function substr; -use function trim; +use function array_key_exists, + explode, + is_array, + is_null, + is_object, + json_decode, + json_last_error_msg, + ltrim, + parse_url, + property_exists, + str_replace, + str_starts_with, + substr, + trim; class WebFinger { diff --git a/src/AppCache.php b/src/AppCache.php index 1e79f50..5dd67c7 100644 --- a/src/AppCache.php +++ b/src/AppCache.php @@ -13,14 +13,14 @@ InvalidArgumentException }; use SodiumException; -use function array_key_exists; -use function is_array; -use function is_int; -use function is_null; -use function iterator_to_array; -use function json_decode; -use function sodium_bin2hex; -use function sodium_crypto_generichash; +use function array_key_exists, + is_array, + is_int, + is_null, + iterator_to_array, + json_decode, + sodium_bin2hex, + sodium_crypto_generichash; class AppCache implements CacheInterface { diff --git a/src/Dependency/InjectConfigStrategy.php b/src/Dependency/InjectConfigStrategy.php index 3630764..4bfc564 100644 --- a/src/Dependency/InjectConfigStrategy.php +++ b/src/Dependency/InjectConfigStrategy.php @@ -9,10 +9,7 @@ use Override; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Message\ResponseInterface; -use function call_user_func_array; -use function is_array; -use function is_object; -use function method_exists; +use function call_user_func_array, is_array, is_object, method_exists; class InjectConfigStrategy extends ApplicationStrategy { diff --git a/src/Dependency/WrappedEncryptedRow.php b/src/Dependency/WrappedEncryptedRow.php index e74b741..65a0d30 100644 --- a/src/Dependency/WrappedEncryptedRow.php +++ b/src/Dependency/WrappedEncryptedRow.php @@ -11,8 +11,7 @@ Exception\CryptoOperationException }; use Override; -use function array_key_exists; -use function is_null; +use function array_key_exists, is_null; /** * Extends the CipherSweet EncryptedRow class to support key-wrapping diff --git a/src/Math.php b/src/Math.php index 8372990..772f346 100644 --- a/src/Math.php +++ b/src/Math.php @@ -2,8 +2,7 @@ declare(strict_types=1); namespace FediE2EE\PKDServer; -use function ceil; -use function log; +use function ceil, log; abstract class Math { diff --git a/src/Middleware/RateLimitMiddleware.php b/src/Middleware/RateLimitMiddleware.php index a179481..2e822c2 100644 --- a/src/Middleware/RateLimitMiddleware.php +++ b/src/Middleware/RateLimitMiddleware.php @@ -13,12 +13,15 @@ use FediE2EE\PKDServer\Interfaces\LimitingHandlerInterface; use FediE2EE\PKDServer\ServerConfig; use Override; -use Psr\Http\Message\ResponseInterface; -use Psr\Http\Message\ServerRequestInterface; -use Psr\Http\Server\MiddlewareInterface; -use Psr\Http\Server\RequestHandlerInterface; -use function in_array; -use function is_null; +use Psr\Http\Message\{ + ResponseInterface, + ServerRequestInterface +}; +use Psr\Http\Server\{ + MiddlewareInterface, + RequestHandlerInterface +}; +use function in_array, is_null; class RateLimitMiddleware implements MiddlewareInterface { diff --git a/src/Protocol/KeyWrapping.php b/src/Protocol/KeyWrapping.php index 987593e..59a731c 100644 --- a/src/Protocol/KeyWrapping.php +++ b/src/Protocol/KeyWrapping.php @@ -34,13 +34,7 @@ use Psr\SimpleCache\InvalidArgumentException; use SensitiveParameter; use SodiumException; -use function array_key_exists; -use function is_int; -use function is_null; -use function is_string; -use function json_decode; -use function json_encode; -use function json_last_error_msg; +use function array_key_exists, is_int, is_null, is_string, json_decode, json_encode, json_last_error_msg; class KeyWrapping { diff --git a/src/Protocol/Payload.php b/src/Protocol/Payload.php index a4e4f1c..9a8c0d7 100644 --- a/src/Protocol/Payload.php +++ b/src/Protocol/Payload.php @@ -9,8 +9,7 @@ ProtocolMessageInterface }; use FediE2EE\PKDServer\Traits\JsonTrait; -use function array_key_exists; -use function json_decode; +use function array_key_exists, json_decode; readonly class Payload { diff --git a/src/Protocol/RewrapConfig.php b/src/Protocol/RewrapConfig.php index 6dac57f..74c8dd5 100644 --- a/src/Protocol/RewrapConfig.php +++ b/src/Protocol/RewrapConfig.php @@ -13,10 +13,7 @@ use ParagonIE\HPKE\Interfaces\EncapsKeyInterface; use ParagonIE\HPKE\KEM\DHKEM\EncapsKey; use ParagonIE\HPKE\KEM\DiffieHellmanKEM; -use function is_object; -use function json_decode; -use function json_last_error_msg; -use function property_exists; +use function is_object, json_decode, json_last_error_msg, property_exists; readonly class RewrapConfig implements JsonSerializable { diff --git a/src/RateLimit/DefaultRateLimiting.php b/src/RateLimit/DefaultRateLimiting.php index d6372ef..3aa23a6 100644 --- a/src/RateLimit/DefaultRateLimiting.php +++ b/src/RateLimit/DefaultRateLimiting.php @@ -19,10 +19,7 @@ use Override; use Psr\Http\Message\ServerRequestInterface; use Psr\Http\Server\RequestHandlerInterface; -use function array_key_exists; -use function floor; -use function is_int; -use function is_null; +use function array_key_exists, floor, is_int, is_null; class DefaultRateLimiting implements RateLimitInterface { diff --git a/src/RateLimit/RateLimitData.php b/src/RateLimit/RateLimitData.php index 7f5edcd..3c4d0fd 100644 --- a/src/RateLimit/RateLimitData.php +++ b/src/RateLimit/RateLimitData.php @@ -10,8 +10,7 @@ use JsonException as BaseJsonException; use Override; use JsonSerializable; -use function is_array; -use function is_null; +use function is_array, is_null; class RateLimitData implements JsonSerializable { diff --git a/src/RateLimit/Storage/Filesystem.php b/src/RateLimit/Storage/Filesystem.php index 680a7dc..9f36e28 100644 --- a/src/RateLimit/Storage/Filesystem.php +++ b/src/RateLimit/Storage/Filesystem.php @@ -13,20 +13,20 @@ use Override; use SensitiveParameter; use SodiumException; -use function array_key_exists; -use function file_exists; -use function file_get_contents; -use function file_put_contents; -use function implode; -use function is_dir; -use function is_null; -use function mkdir; -use function sodium_bin2hex; -use function sodium_crypto_generichash; -use function sodium_crypto_generichash_keygen; -use function substr; -use function time; -use function unlink; +use function array_key_exists, + file_exists, + file_get_contents, + file_put_contents, + implode, + is_dir, + is_null, + mkdir, + sodium_bin2hex, + sodium_crypto_generichash, + sodium_crypto_generichash_keygen, + substr, + time, + unlink; class Filesystem implements RateLimitStorageInterface { diff --git a/src/RateLimit/Storage/Redis.php b/src/RateLimit/Storage/Redis.php index 1524c19..4886d11 100644 --- a/src/RateLimit/Storage/Redis.php +++ b/src/RateLimit/Storage/Redis.php @@ -13,10 +13,7 @@ use Predis\Client as PredisClient; use SensitiveParameter; use SodiumException; -use function is_null; -use function sodium_bin2hex; -use function sodium_crypto_generichash; -use function sodium_crypto_generichash_keygen; +use function is_null, sodium_bin2hex, sodium_crypto_generichash, sodium_crypto_generichash_keygen; class Redis implements RateLimitStorageInterface { diff --git a/src/RequestHandlers/ActivityPub/Finger.php b/src/RequestHandlers/ActivityPub/Finger.php index 2dcd48d..04a4fa6 100644 --- a/src/RequestHandlers/ActivityPub/Finger.php +++ b/src/RequestHandlers/ActivityPub/Finger.php @@ -23,9 +23,7 @@ ResponseInterface }; use SodiumException; -use function array_key_exists; -use function hash_equals; -use function preg_match; +use function array_key_exists, hash_equals, preg_match; class Finger implements RequestHandlerInterface { diff --git a/src/RequestHandlers/Api/GetAuxData.php b/src/RequestHandlers/Api/GetAuxData.php index f51fc53..387d964 100644 --- a/src/RequestHandlers/Api/GetAuxData.php +++ b/src/RequestHandlers/Api/GetAuxData.php @@ -37,8 +37,7 @@ use SodiumException; use Throwable; use TypeError; -use function is_null; -use function urlencode; +use function is_null, urlencode; class GetAuxData implements RequestHandlerInterface { diff --git a/src/RequestHandlers/Api/GetKey.php b/src/RequestHandlers/Api/GetKey.php index d320313..d826778 100644 --- a/src/RequestHandlers/Api/GetKey.php +++ b/src/RequestHandlers/Api/GetKey.php @@ -37,8 +37,7 @@ use SodiumException; use Throwable; use TypeError; -use function is_null; -use function urlencode; +use function is_null, urlencode; class GetKey implements RequestHandlerInterface { diff --git a/src/RequestHandlers/Api/HistoryCosign.php b/src/RequestHandlers/Api/HistoryCosign.php index e41cc35..6bbfba0 100644 --- a/src/RequestHandlers/Api/HistoryCosign.php +++ b/src/RequestHandlers/Api/HistoryCosign.php @@ -21,10 +21,7 @@ use SodiumException; use Throwable; use TypeError; -use function in_array; -use function is_object; -use function json_decode; -use function property_exists; +use function in_array, is_object, json_decode, property_exists; class HistoryCosign implements RequestHandlerInterface { diff --git a/src/Scheduled/ASQueue.php b/src/Scheduled/ASQueue.php index 0f44536..0d250db 100644 --- a/src/Scheduled/ASQueue.php +++ b/src/Scheduled/ASQueue.php @@ -28,8 +28,7 @@ use Psr\SimpleCache\InvalidArgumentException; use SodiumException; use Throwable; -use function defined; -use function is_null; +use function defined, is_null; class ASQueue { diff --git a/src/Scheduled/Witness.php b/src/Scheduled/Witness.php index cbe87b3..0e50e59 100644 --- a/src/Scheduled/Witness.php +++ b/src/Scheduled/Witness.php @@ -51,13 +51,7 @@ use Random\RandomException; use SodiumException; use Throwable; -use function count; -use function is_array; -use function is_string; -use function json_decode; -use function json_last_error_msg; -use function random_bytes; -use function urlencode; +use function count, is_array, is_string, json_decode, json_last_error_msg, random_bytes, urlencode; /** * Perform witness co-signatures for third-porty Public Key Directory instances. diff --git a/src/Tables/Actors.php b/src/Tables/Actors.php index c143459..b10f752 100644 --- a/src/Tables/Actors.php +++ b/src/Tables/Actors.php @@ -23,9 +23,7 @@ InvalidCiphertextException }; use SodiumException; -use function array_key_exists; -use function hash_equals; -use function is_null; +use function array_key_exists, hash_equals, is_null; class Actors extends Table { diff --git a/src/Tables/AuxData.php b/src/Tables/AuxData.php index 75c81cb..a048eb6 100644 --- a/src/Tables/AuxData.php +++ b/src/Tables/AuxData.php @@ -48,10 +48,7 @@ use Psr\SimpleCache\InvalidArgumentException; use Random\RandomException; use SodiumException; -use function hash_equals; -use function is_null; -use function is_string; -use function json_decode; +use function hash_equals, is_null, is_string, json_decode; class AuxData extends Table { diff --git a/src/Tables/MerkleState.php b/src/Tables/MerkleState.php index cefb1d5..8efcdc7 100644 --- a/src/Tables/MerkleState.php +++ b/src/Tables/MerkleState.php @@ -36,15 +36,15 @@ use Psr\SimpleCache\InvalidArgumentException; use Random\RandomException; use SodiumException; -use function array_key_exists; -use function hash_equals; -use function in_array; -use function is_null; -use function random_bytes; -use function random_int; -use function sodium_bin2hex; -use function str_contains; -use function usleep; +use function array_key_exists, + hash_equals, + in_array, + is_null, + random_bytes, + random_int, + sodium_bin2hex, + str_contains, + usleep; /** * Merkle State management diff --git a/src/Tables/Peers.php b/src/Tables/Peers.php index 4b00698..f62cc8e 100644 --- a/src/Tables/Peers.php +++ b/src/Tables/Peers.php @@ -29,8 +29,7 @@ use ParagonIE\HPKE\HPKEException; use Random\RandomException; use SodiumException; -use function is_null; -use function random_bytes; +use function is_null, random_bytes; class Peers extends Table { diff --git a/src/Tables/PublicKeys.php b/src/Tables/PublicKeys.php index 63a9d44..db1dbc4 100644 --- a/src/Tables/PublicKeys.php +++ b/src/Tables/PublicKeys.php @@ -63,13 +63,7 @@ use Random\RandomException; use SodiumException; use TypeError; -use function array_any; -use function hash_equals; -use function is_array; -use function is_null; -use function is_string; -use function json_decode; -use function random_bytes; +use function array_any, hash_equals, is_array, is_null, is_string, json_decode, random_bytes; class PublicKeys extends Table { diff --git a/src/Tables/Records/MerkleLeaf.php b/src/Tables/Records/MerkleLeaf.php index b5876bb..06d6828 100644 --- a/src/Tables/Records/MerkleLeaf.php +++ b/src/Tables/Records/MerkleLeaf.php @@ -14,11 +14,7 @@ use FediE2EE\PKDServer\Tables\MerkleState; use ParagonIE\ConstantTime\Base64UrlSafe; use SodiumException; -use function hash; -use function json_decode; -use function sodium_bin2hex; -use function sodium_hex2bin; -use function time; +use function hash, json_decode, sodium_bin2hex, sodium_hex2bin, time; /** * Abstraction for a row in the MerkleState table diff --git a/src/Tables/Records/ReplicaLeaf.php b/src/Tables/Records/ReplicaLeaf.php index a868088..568dc75 100644 --- a/src/Tables/Records/ReplicaLeaf.php +++ b/src/Tables/Records/ReplicaLeaf.php @@ -9,8 +9,7 @@ use FediE2EE\PKDServer\Traits\TableRecordTrait; use JsonException; use SodiumException; -use function is_null; -use function sodium_hex2bin; +use function is_null, sodium_hex2bin; #[RecordForTable(ReplicaHistory::class)] final class ReplicaLeaf diff --git a/src/Tables/ReplicaActors.php b/src/Tables/ReplicaActors.php index 2ae96c1..e6969f2 100644 --- a/src/Tables/ReplicaActors.php +++ b/src/Tables/ReplicaActors.php @@ -24,8 +24,7 @@ use ParagonIE\CipherSweet\Backend\Key\SymmetricKey as CipherSweetKey; use ParagonIE\CipherSweet\BlindIndex; use SodiumException; -use function hash_equals; -use function is_null; +use function hash_equals, is_null; class ReplicaActors extends Table { diff --git a/src/Tables/ReplicaAuxData.php b/src/Tables/ReplicaAuxData.php index 3107930..fe267da 100644 --- a/src/Tables/ReplicaAuxData.php +++ b/src/Tables/ReplicaAuxData.php @@ -17,10 +17,7 @@ }; use Override; use SodiumException; -use function is_array; -use function is_null; -use function is_string; -use function json_decode; +use function is_array, is_null, is_string, json_decode; class ReplicaAuxData extends Table { diff --git a/src/Tables/ReplicaHistory.php b/src/Tables/ReplicaHistory.php index a0e6d55..7a408fe 100644 --- a/src/Tables/ReplicaHistory.php +++ b/src/Tables/ReplicaHistory.php @@ -13,8 +13,7 @@ ReplicaLeaf }; use Override; -use function date; -use function json_decode; +use function date, json_decode; class ReplicaHistory extends Table { diff --git a/src/Tables/ReplicaPublicKeys.php b/src/Tables/ReplicaPublicKeys.php index d950477..c039f4b 100644 --- a/src/Tables/ReplicaPublicKeys.php +++ b/src/Tables/ReplicaPublicKeys.php @@ -18,10 +18,7 @@ }; use ParagonIE\EasyDB\EasyStatement; use SodiumException; -use function is_array; -use function is_null; -use function is_string; -use function json_decode; +use function is_array, is_null, is_string, json_decode; class ReplicaPublicKeys extends Table { diff --git a/src/Tables/TOTP.php b/src/Tables/TOTP.php index 57e5f70..d27c8d0 100644 --- a/src/Tables/TOTP.php +++ b/src/Tables/TOTP.php @@ -17,9 +17,7 @@ use Random\RandomException; use SensitiveParameter; use SodiumException; -use function array_key_exists; -use function is_null; -use function random_bytes; +use function array_key_exists, is_null, random_bytes; class TOTP extends Table { diff --git a/src/Traits/ActivityStreamsTrait.php b/src/Traits/ActivityStreamsTrait.php index 4da155f..b3e6130 100644 --- a/src/Traits/ActivityStreamsTrait.php +++ b/src/Traits/ActivityStreamsTrait.php @@ -19,9 +19,7 @@ use Psr\SimpleCache\InvalidArgumentException; use SodiumException; use stdClass; -use function json_decode; -use function json_last_error_msg; -use function property_exists; +use function json_decode, json_last_error_msg, property_exists; trait ActivityStreamsTrait { diff --git a/src/Traits/ConfigTrait.php b/src/Traits/ConfigTrait.php index f0002ce..bfcb9a5 100644 --- a/src/Traits/ConfigTrait.php +++ b/src/Traits/ConfigTrait.php @@ -31,15 +31,7 @@ use ParagonIE\Certainty\Exception\CertaintyException; use SodiumException; use TypeError; -use function array_key_exists; -use function get_debug_type; -use function is_array; -use function is_int; -use function is_null; -use function is_numeric; -use function is_string; -use function parse_url; -use function reset; +use function array_key_exists, get_debug_type, is_array, is_int, is_null, is_numeric, is_string, parse_url, reset; trait ConfigTrait { diff --git a/src/Traits/JsonTrait.php b/src/Traits/JsonTrait.php index 820b907..05a9644 100644 --- a/src/Traits/JsonTrait.php +++ b/src/Traits/JsonTrait.php @@ -4,8 +4,7 @@ use JsonException as BaseJsonException; use stdClass; -use function json_decode; -use function json_encode; +use function json_decode, json_encode; trait JsonTrait { diff --git a/src/Traits/NetworkTrait.php b/src/Traits/NetworkTrait.php index 66e7f79..f8e8810 100644 --- a/src/Traits/NetworkTrait.php +++ b/src/Traits/NetworkTrait.php @@ -4,20 +4,20 @@ use FediE2EE\PKDServer\Exceptions\NetTraitException; use Psr\Http\Message\ServerRequestInterface; -use function array_values; -use function filter_var; -use function in_array; -use function inet_ntop; -use function inet_pton; -use function is_object; -use function is_string; -use function json_decode; -use function min; -use function pack; -use function parse_url; -use function property_exists; -use function trim; -use function unpack; +use function array_values, + filter_var, + in_array, + inet_ntop, + inet_pton, + is_object, + is_string, + json_decode, + min, + pack, + parse_url, + property_exists, + trim, + unpack; trait NetworkTrait { diff --git a/src/Traits/ReqTrait.php b/src/Traits/ReqTrait.php index 401a39b..bd25371 100644 --- a/src/Traits/ReqTrait.php +++ b/src/Traits/ReqTrait.php @@ -25,8 +25,7 @@ SyntaxError }; use TypeError; -use function array_key_exists; -use function time; +use function array_key_exists, time; /** * Request Handler trait diff --git a/src/Traits/TOTPTrait.php b/src/Traits/TOTPTrait.php index 668a0f2..764d368 100644 --- a/src/Traits/TOTPTrait.php +++ b/src/Traits/TOTPTrait.php @@ -32,15 +32,7 @@ use ParagonIE\ConstantTime\Base64UrlSafe; use SensitiveParameter; use SodiumException; -use function floor; -use function hash_equals; -use function hash_hmac; -use function is_null; -use function pack; -use function sprintf; -use function substr; -use function time; -use function unpack; +use function floor, hash_equals, hash_hmac, is_null, pack, sprintf, substr, time, unpack; trait TOTPTrait { diff --git a/src/Traits/TableRecordTrait.php b/src/Traits/TableRecordTrait.php index 8d37583..89d5088 100644 --- a/src/Traits/TableRecordTrait.php +++ b/src/Traits/TableRecordTrait.php @@ -15,9 +15,7 @@ TableException, }; use SodiumException; -use function array_key_exists; -use function is_null; -use function property_exists; +use function array_key_exists, is_null, property_exists; /** * @property ServerConfig $config diff --git a/tests/Integration/ActorLifecycleTest.php b/tests/Integration/ActorLifecycleTest.php index 3f9db45..3cb0287 100644 --- a/tests/Integration/ActorLifecycleTest.php +++ b/tests/Integration/ActorLifecycleTest.php @@ -5,6 +5,7 @@ use DateMalformedStringException; use DateTimeImmutable; use FediE2EE\PKD\Crypto\{ + ActivityPub\WebFinger as PKDCryptoWebFinger, AttributeEncryption\AttributeKeyMap, Merkle\IncrementalTree, Protocol\Handler, @@ -124,7 +125,7 @@ public function setUp(): void public function tearDown(): void { - Handler::$wf = null; + Handler::setWebFinger(new PKDCryptoWebFinger()); } /** @@ -190,19 +191,23 @@ public function testOtherActionsWithPeerRewrapping(): void $wf->setCanonicalForTesting($canonical2, $canonical2); // Mock for pkd-crypto side - Handler::$wf = new class($canonical, $canonical2) extends \FediE2EE\PKD\Crypto\ActivityPub\WebFinger { - public function __construct(private string $c1, private string $c2) {} - public function canonicalize(string $actor): string + Handler::setWebFinger(new class($canonical, $canonical2) extends PKDCryptoWebFinger { + public function __construct(private string $c1, private string $c2) { - if (str_contains($actor, 'alice')) { + parent::__construct(); + } + + public function canonicalize(string $actorUsernameOrUrl): string + { + if (str_contains($actorUsernameOrUrl, 'alice')) { return $this->c1; } - if (str_contains($actor, 'bob')) { + if (str_contains($actorUsernameOrUrl, 'bob')) { return $this->c2; } - return $actor; + return $actorUsernameOrUrl; } - }; + }); $this->table('PublicKeys')->setWebFinger($wf); $this->table('AuxData')->setWebFinger($wf); @@ -633,7 +638,7 @@ public function testAddAuxDataWithPeerRewrapping(): void */ public function testAddAndRevoke(): void { - Handler::$wf = null; + Handler::setWebFinger(new PKDCryptoWebFinger()); [$actorId, $canonical] = $this->makeDummyActor('example.net'); // Generate key pair for alice diff --git a/tests/Integration/VectorsTest.php b/tests/Integration/VectorsTest.php index a916c02..68279f6 100644 --- a/tests/Integration/VectorsTest.php +++ b/tests/Integration/VectorsTest.php @@ -2,6 +2,7 @@ declare(strict_types=1); namespace FediE2EE\PKDServer\Tests\Integration; +use FediE2EE\PKD\Crypto\ActivityPub\WebFinger as PKDCryptoWebFinger; use FediE2EE\PKD\Crypto\AttributeEncryption\AttributeKeyMap; use FediE2EE\PKD\Crypto\Exceptions\{ BundleException, @@ -164,14 +165,14 @@ public function setUp(): void // Clear table cache to avoid stale state between tests TableCache::instance()->clearCache(); $this->truncateTables(); - Handler::$wf = null; + Handler::setWebFinger(new PKDCryptoWebFinger()); $this->identityKeys = []; $this->actorKeyCount = []; } public function tearDown(): void { - Handler::$wf = null; + Handler::setWebFinger(new PKDCryptoWebFinger()); $this->identityKeys = []; $this->actorKeyCount = []; } @@ -319,7 +320,7 @@ private function createWebFingerMockForIdentities(array $identities): WebFinger $webFinger->setCanonicalForTesting($actorUrl, $actorUrl); } - Handler::$wf = new class($identities) extends \FediE2EE\PKD\Crypto\ActivityPub\WebFinger { + Handler::setWebFinger(new class($identities) extends PKDCryptoWebFinger { /** @param array> $identities */ public function __construct(private readonly array $identities) {} @@ -332,8 +333,7 @@ public function canonicalize(string $actor): string } return $actor; } - }; - + }); return $webFinger; } diff --git a/tests/RequestHandlers/Api/BurnDownTest.php b/tests/RequestHandlers/Api/BurnDownTest.php index 9b70447..ca75e5a 100644 --- a/tests/RequestHandlers/Api/BurnDownTest.php +++ b/tests/RequestHandlers/Api/BurnDownTest.php @@ -198,24 +198,26 @@ public function testHandle(): void // 3. Create BurnDown message (plaintext, not HPKE encrypted) // Note: BurnDownAction expects actor handles (with @), not canonical URLs // Set up mock WebFinger for the pkd-crypto Handler to resolve actor handles - Handler::$wf = new CryptoWebFinger($this->getMockClient([ - new Response(200, ['Content-Type' => 'application/jrd+json'], json_encode([ - 'subject' => "acct:{$actorHandle}", - 'links' => [[ - 'rel' => 'self', - 'type' => 'application/activity+json', - 'href' => $canonActor - ]] - ])), - new Response(200, ['Content-Type' => 'application/jrd+json'], json_encode([ - 'subject' => "acct:{$operatorHandle}", - 'links' => [[ - 'rel' => 'self', - 'type' => 'application/activity+json', - 'href' => $canonOperator - ]] + Handler::setWebFinger( + new CryptoWebFinger($this->getMockClient([ + new Response(200, ['Content-Type' => 'application/jrd+json'], json_encode([ + 'subject' => "acct:{$actorHandle}", + 'links' => [[ + 'rel' => 'self', + 'type' => 'application/activity+json', + 'href' => $canonActor + ]] + ])), + new Response(200, ['Content-Type' => 'application/jrd+json'], json_encode([ + 'subject' => "acct:{$operatorHandle}", + 'links' => [[ + 'rel' => 'self', + 'type' => 'application/activity+json', + 'href' => $canonOperator + ]] + ])) ])) - ])); + ); $latestRoot3 = $merkleState->getLatestRoot(); // Note: BurnDownAction canonicalizes actor but NOT operator, so operator must be canonical URL @@ -302,7 +304,7 @@ public function testHandle(): void // Clean up for test isolation $this->clearMerkleStateLock(); - Handler::$wf = null; + Handler::setWebFinger(new CryptoWebFinger()); } /**