1
0
Fork 0
Teamcity-Phabricator-Plugin/Harbormaster-Teamcity-Plugin/PassphraseTokenKey.php

17 lines
450 B
PHP
Raw Permalink Normal View History

<?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();
}
}