PHP Class Airship\Engine\Keyggdrasil\TreeUpdate

This represents an update to Keyggdrasil
Afficher le fichier Open project: paragonie/airship

Protected Properties

Свойство Type Description
$channelId integer
$channelName string
$checksum string
$isNewSupplier boolean
$keyType string
$masterSig string | null
$merkleRoot string
$newPublicKey string
$packageType string
$stored array
$supplier Supplier
$supplierMasterKeyUsed SignaturePublicKey
$supplierName string
$updateMessage array
$verified boolean

Méthodes publiques

Méthode Description
__construct ( Channel $chan, array $updateData ) TreeUpdate constructor.
getChannelId ( ) : integer The upstream primary key for this update
getChannelName ( ) : string
getKeyType ( ) : string
getNodeData ( ) : array
getNodeJSON ( ) : string
getPackageName ( ) : string What is the name of this package?
getPackageType ( ) : string What type of package is this? Possible values: Core, Cabin, Motif, or Gadget.
getPublicKeyObject ( ) : SignaturePublicKey Get the new public key as a SignaturePublicKey object
getPublicKeyString ( ) : string Get the new public key as a hex-coded string
getRoot ( ) : string Get the Merkle root for this update
getSupplier ( ) : Supplier
getSupplierName ( ) : string
isAirshipUpdate ( ) : boolean Is this an update to the Airship core?
isCreateKey ( ) : boolean Is this a "create key" update?
isPackageUpdate ( ) : boolean Is this a "package release" update?
isRevokeKey ( ) : boolean Is this a "revoke key" update?

Méthodes protégées

Méthode Description
loadSupplier ( Channel $chan, array $updateData ) : Supplier Return the appropriate supplier (or create it if it doesn't already exist)
unpackMessageUpdate ( Channel $chan, array $updateData ) : void This method stores the necessary bits of data in this object.

Method Details

__construct() public méthode

TreeUpdate constructor.
public __construct ( Channel $chan, array $updateData )
$chan Channel
$updateData array

getChannelId() public méthode

The upstream primary key for this update
public getChannelId ( ) : integer
Résultat integer

getChannelName() public méthode

public getChannelName ( ) : string
Résultat string

getKeyType() public méthode

public getKeyType ( ) : string
Résultat string

getNodeData() public méthode

public getNodeData ( ) : array
Résultat array

getNodeJSON() public méthode

public getNodeJSON ( ) : string
Résultat string

getPackageName() public méthode

What is the name of this package?
public getPackageName ( ) : string
Résultat string

getPackageType() public méthode

What type of package is this? Possible values: Core, Cabin, Motif, or Gadget.
public getPackageType ( ) : string
Résultat string

getPublicKeyObject() public méthode

Get the new public key as a SignaturePublicKey object
public getPublicKeyObject ( ) : SignaturePublicKey
Résultat SignaturePublicKey

getPublicKeyString() public méthode

Get the new public key as a hex-coded string
public getPublicKeyString ( ) : string
Résultat string

getRoot() public méthode

Get the Merkle root for this update
public getRoot ( ) : string
Résultat string

getSupplier() public méthode

public getSupplier ( ) : Supplier
Résultat Supplier

getSupplierName() public méthode

public getSupplierName ( ) : string
Résultat string

isAirshipUpdate() public méthode

Is this an update to the Airship core?
public isAirshipUpdate ( ) : boolean
Résultat boolean

isCreateKey() public méthode

Is this a "create key" update?
public isCreateKey ( ) : boolean
Résultat boolean

isPackageUpdate() public méthode

Is this a "package release" update?
public isPackageUpdate ( ) : boolean
Résultat boolean

isRevokeKey() public méthode

Is this a "revoke key" update?
public isRevokeKey ( ) : boolean
Résultat boolean

loadSupplier() protected méthode

Return the appropriate supplier (or create it if it doesn't already exist)
protected loadSupplier ( Channel $chan, array $updateData ) : Supplier
$chan Channel
$updateData array
Résultat Supplier

unpackMessageUpdate() protected méthode

This method stores the necessary bits of data in this object.
protected unpackMessageUpdate ( Channel $chan, array $updateData ) : void
$chan Channel
$updateData array
Résultat void

Property Details

$channelId protected_oe property

protected int $channelId
Résultat integer

$channelName protected_oe property

protected string $channelName
Résultat string

$checksum protected_oe property

protected string $checksum
Résultat string

$isNewSupplier protected_oe property

protected bool $isNewSupplier
Résultat boolean

$keyType protected_oe property

protected string $keyType
Résultat string

$masterSig protected_oe property

protected string|null $masterSig
Résultat string | null

$merkleRoot protected_oe property

protected string $merkleRoot
Résultat string

$newPublicKey protected_oe property

protected string $newPublicKey
Résultat string

$packageType protected_oe property

protected string $packageType
Résultat string

$stored protected_oe property

protected array $stored
Résultat array

$supplier protected_oe property

protected Supplier $supplier
Résultat Supplier

$supplierMasterKeyUsed protected_oe property

protected SignaturePublicKey $supplierMasterKeyUsed
Résultat SignaturePublicKey

$supplierName protected_oe property

protected string $supplierName
Résultat string

$updateMessage protected_oe property

protected array $updateMessage
Résultat array

$verified protected_oe property

protected bool $verified
Résultat boolean