11558ddf54
The complete plugin required to trigger a teamcity build from a harbormaster build plan.
17 lines
No EOL
450 B
PHP
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();
|
|
}
|
|
|
|
} |