Nextcloud Circles API

RemoteService extends NCSignature
in package

Class RemoteService

Table of Contents

DATE_HEADER  = 'D, d M Y H:i:s T'
DATE_OBJECT  = 'Y-m-d\\TH:i:s\\Z'
DATE_TTL  = 300
$circleRequest  : CircleRequest
$dateHeader  : mixed
$memberRequest  : MemberRequest
$membershipService  : MembershipService
$remoteStreamService  : RemoteStreamService
$shareService  : ShareService
$ttl  : int
__construct()  : mixed
RemoteService constructor.
downloadSignatory()  : void
generateKeys()  : mixed
getCircleFromInstance()  : Circle
getCirclesFromInstance()  : array<string|int, Circle>
getFederatedUserFromInstance()  : FederatedUser
getInheritedFromInstance()  : array<string|int, Member>
getKeyOrigin()  : string
getMembersFromInstance()  : array<string|int, Member>
getMembershipsFromInstance()  : array<string|int, Membership>
getOpenSSLAlgo()  : int
incomingSignedRequest()  : NCSignedRequest
retrieveSignatory()  : NCSignatory
return Signatory by its Id from cache or from direct request.
signOutgoingRequest()  : NCSignedRequest
signString()  : string
syncCircle()  : void
syncRemoteCircle()  : void
syncRemoteMembers()  : mixed
updateSignatory()  : void
verifyString()  : mixed
getChosenEncryption()  : string
getUsedEncryption()  : string
parseIncomingSignatureHeader()  : void
setIncomingClearSignature()  : void
setIncomingSignatureHeader()  : void
setOutgoingClearSignature()  : void
setOutgoingSignatureHeader()  : void
setOutgoingSignedSignature()  : void
signingOutgoingRequest()  : void
syncLocalCircle()  : void
verifyIncomingRequestContent()  : void
verifyIncomingRequestSignature()  : mixed
verifyIncomingRequestTime()  : void
verifySignedRequest()  : mixed

Constants

DATE_HEADER

public mixed DATE_HEADER = 'D, d M Y H:i:s T'

DATE_OBJECT

public mixed DATE_OBJECT = 'Y-m-d\\TH:i:s\\Z'

Properties

$dateHeader

private mixed $dateHeader = self::DATE_HEADER

Methods

downloadSignatory()

public downloadSignatory(NCSignatory $signatory[, string $keyId = '' ][, array<string|int, mixed> $params = [] ][, NCRequest|null $request = null ]) : void
Parameters
$signatory : NCSignatory
$keyId : string = ''
$params : array<string|int, mixed> = []
$request : NCRequest|null = null
Tags
throws
SignatoryException
Return values
void

generateKeys()

public generateKeys(NCSignatory $signatory[, string $digest = 'rsa' ][, int $bits = 2048 ][, int $type = OPENSSL_KEYTYPE_RSA ]) : mixed
Parameters
$signatory : NCSignatory
$digest : string = 'rsa'
$bits : int = 2048
$type : int = OPENSSL_KEYTYPE_RSA
Return values
mixed

getCircleFromInstance()

public getCircleFromInstance(string $circleId, string $instance[, array<string|int, mixed> $data = [] ]) : Circle
Parameters
$circleId : string
$instance : string
$data : array<string|int, mixed> = []
Tags
throws
CircleNotFoundException
throws
InvalidItemException
throws
RemoteInstanceException
throws
RemoteNotFoundException
throws
RemoteResourceNotFoundException
throws
UnknownRemoteException
throws
FederatedItemException
Return values
Circle

getFederatedUserFromInstance()

public getFederatedUserFromInstance(string $userId, string $instance[, int $type = Member::TYPE_USER ]) : FederatedUser
Parameters
$userId : string
$instance : string
$type : int = Member::TYPE_USER
Tags
throws
FederatedUserNotFoundException
throws
RemoteInstanceException
throws
RemoteNotFoundException
throws
RemoteResourceNotFoundException
throws
UnknownRemoteException
throws
FederatedUserException
throws
FederatedItemException
Return values
FederatedUser

retrieveSignatory()

return Signatory by its Id from cache or from direct request.

public retrieveSignatory(string $keyId[, bool $refresh = false ]) : NCSignatory

Should be overwritten.

Parameters
$keyId : string
$refresh : bool = false
Tags
throws
SignatoryException
Return values
NCSignatory

updateSignatory()

public updateSignatory(NCSignatory $signatory, array<string|int, mixed> $json[, string $keyId = '' ]) : void
Parameters
$signatory : NCSignatory
$json : array<string|int, mixed>
$keyId : string = ''
Tags
throws
SignatoryException
Return values
void

verifyString()

public verifyString(string $clear, string $signed, string $publicKey[, string $algo = NCSignatory::SHA256 ]) : mixed
Parameters
$clear : string
$signed : string
$publicKey : string
$algo : string = NCSignatory::SHA256
Tags
throws
SignatureException
Return values
mixed

Search results