GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.openpgpjs.org — JSDoc: Class: Key Methods(async) applyRevocationCertificate(revocationCertificate, dateopt, configopt) → {Promise.<Key>}Applies a revocation certificate to a key This adds the first signature packet in the armored text to the key, if it is a valid revocation signature. Parameters:
Returns:Revoked key.
clone(clonePrivateParamsopt) → {Promise.<Key>}Clones the key object. The copy is shallow, as it references the same packet objects as the original. However, if the top-level API is used, the two key instances are effectively independent. Parameters:
Returns:Clone of the key.
getAlgorithmInfo() → {Object}Returns algorithm information
Returns:An object of the form {algorithm: String, bits:int, curve:String}.
getCreationTime() → {Date}Returns the creation time of the key
Returns:
(async) getEncryptionKey(keyIDopt, dateopt, userIDopt, configopt) → {Promise.<(Key|Subkey)>}Returns last created key or key by given keyID that is available for encryption or decryption Parameters:
Throws:if no valid encryption key was found Returns:encryption key
(async) getExpirationTime(userIDopt, configopt) → {Promise.<(Date|Infinity|null)>}Returns the expiration date of the primary key, considering self-certifications and direct-key signatures.
Returns Parameters:
Returns:
getFingerprint() → {String}Calculates and returns the fingerprint of the key, as a string
Returns:A string containing the fingerprint in lowercase hex
getKeyID() → {module:type/keyid~KeyID}Return the key ID of the key
Returns:The 8-byte key ID
getKeyIDs() → {Array.<module:type/keyid~KeyID>}Returns key IDs of all keys
Returns:
getKeys(keyIDopt) → {Array.<(Key|Subkey)>}Returns an array containing all public or private keys matching keyID. If no keyID is given, returns all keys, starting with the primary key. Parameters:
Returns:array of keys
(async) getPrimarySelfSignature(dateopt, userIDopt, configopt) → {Promise.<SignaturePacket>}For V4 keys, returns the self-signature of the primary user. For V5 keys, returns the latest valid direct-key self-signature. This self-signature is to be used to check the key expiration, algorithm preferences, and so on. Parameters:
Returns:The primary self-signature
(async) getPrimaryUser(dateopt, userIDopt, configopt) → {Promise.<{user: User, selfCertification: SignaturePacket}>}Returns primary user and most significant (latest valid) self signature
Parameters:
Returns:The primary user and the self signature
(async) getRevocationCertificate(date, configopt) → {Promise.<String>}Get revocation certificate from a revoked key. (To get a revocation certificate for an unrevoked key, call revoke() first.) Parameters:
Returns:Armored revocation certificate.
(async) getSigningKey(keyIDopt, dateopt, userIDopt, configopt) → {Promise.<(Key|Subkey)>}Returns last created key or key by given keyID that is available for signing and verification Parameters:
Throws:if no valid signing key was found Returns:signing key
getSubkeys(keyIDopt) → {Array.<Subkey>}Returns an array containing all public or private subkeys matching keyID; If no keyID is given, returns all subkeys. Parameters:
Returns:array of subkeys
getUserIDs() → {Array.<string>}Returns userIDs
Returns:Array of userIDs.
hasSameFingerprintAs() → {Boolean}Calculates whether two keys have the same fingerprint without actually calculating the fingerprint
Returns:Whether the two keys have the same version and public key data.
(async) isRevoked(signature, key,, dateopt, configopt) → {Promise.<Boolean>}Checks if a signature on a key is revoked Parameters:
Returns:True if the certificate is revoked.
packetListToStructure(packetlist, disallowedPackets)Transforms packetlist to structured key data Parameters:
(async) signAllUsers(privateKeys, dateopt, configopt) → {Promise.<Key>}Signs all users of key Parameters:
Returns:Key with new certificate signature.
(async) signPrimaryUser(privateKeys, dateopt, userIDopt, configopt) → {Promise.<Key>}Signs primary user of key Parameters:
Returns:Key with new certificate signature.
toPacketList() → {PacketList}Transforms structured key data to packetlist
Returns:The packets that form a key.
(async) update(sourceKey, dateopt, configopt) → {Promise.<Key>}Update key with new components from specified key with same key ID: users, subkeys, certificates are merged into the destination key, duplicates and expired signatures are ignored. If the source key is a private key and the destination key is public, a private key is returned. Parameters:
Returns:updated key
(async) verifyAllUsers(verificationKeysopt, dateopt, configopt) → {Promise.<Array.<{userID: String, keyID: module:type/keyid~KeyID, valid: (Boolean|null)}>>}Verifies all users of key
Parameters:
Returns:List of userID, signer's keyID and validity of signature. Signature validity is null if the verification keys do not correspond to the certificate.
(async) verifyPrimaryKey(dateopt, userIDopt, configopt)Verify primary key. Checks for revocation signatures, expiration time and valid self signature. Throws if the primary key is invalid. Parameters:
Throws:
(async) verifyPrimaryUser(verificationKeysopt, dateopt, userIDopt, configopt) → {Promise.<Array.<{keyID: module:type/keyid~KeyID, valid: (Boolean|null)}>>}Verifies primary user of key
Parameters:
Returns:List of signer's keyID and validity of signature. Signature validity is null if the verification keys do not correspond to the certificate.
write() → {Uint8Array}Returns binary encoded key
Returns:Binary key.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |