Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/passphrase/keys/PassphrasePasswordKey.php
12256 views
1
<?php
2
3
final class PassphrasePasswordKey extends PassphraseAbstractKey {
4
5
public static function loadFromPHID($phid, PhabricatorUser $viewer) {
6
$key = new PassphrasePasswordKey();
7
return $key->loadAndValidateFromPHID(
8
$phid,
9
$viewer,
10
PassphrasePasswordCredentialType::PROVIDES_TYPE);
11
}
12
13
public function getPasswordEnvelope() {
14
return $this->requireCredential()->getSecret();
15
}
16
17
}
18
19