1
0
Fork 0
Teamcity-Phabricator-Plugin/Harbormaster-Teamcity-Plugin/PassphraseTokenKey.php
Steven Cooney 11558ddf54 Add Harbormaster TeamCity Plugin
The complete plugin required to trigger a teamcity build from a harbormaster build plan.
2019-05-30 13:16:13 +01:00

17 lines
No EOL
450 B
PHP

<?php
final class PassphraseTokenKey extends PassphraseAbstractKey {
public static function loadFromPHID($phid, PhabricatorUser $viewer) {
$key = new PassphraseTokenKey();
return $key->loadAndValidateFromPHID(
$phid,
$viewer,
PassphraseTokenCredentialType::PROVIDES_TYPE);
}
public function getPasswordEnvelope() {
return $this->requireCredential()->getSecret();
}
}