Page MenuHomePhorge
Diviner Tech Docs PassphraseSSHPrivateKeyCredentialType

abstract class PassphraseSSHPrivateKeyCredentialType
Phorge Technical Documentation (Passphrase)

This class is not documented.

Tasks

Managing Encryption Passwords

  • public function shouldShowPasswordField() — Return true to show an additional "Password" field. This is used by SSH credentials to strip passwords off private keys.
  • public function getPasswordLabel() — Return the label for the password field, if one is shown.

Other Methods

Methods

public function __get($name)
Inherited

This method is not documented.
Parameters
$name
Return
wild

public function __set($name, $value)
Inherited

This method is not documented.
Parameters
$name
$value
Return
wild

public function current()
Inherited

This method is not documented.
Return
wild

public function key()
Inherited

This method is not documented.
Return
wild

public function next()
Inherited

This method is not documented.
Return
wild

public function rewind()
Inherited

This method is not documented.
Return
wild

public function valid()
Inherited

This method is not documented.
Return
wild

private function throwOnAttemptedIteration()
Inherited

This method is not documented.
Return
wild

public function getPhobjectClassConstant($key, $byte_limit)
Inherited

Phobject

Read the value of a class constant.

This is the same as just typing self::CONSTANTNAME, but throws a more useful message if the constant is not defined and allows the constant to be limited to a maximum length.

Parameters
string$keyName of the constant.
int|null$byte_limitMaximum number of bytes permitted in the value.
Return
stringValue of the constant.

abstract public function getCredentialType()
Inherited

This method is not documented.
Return
wild

final public function getProvidesType()

This method is not documented.
Return
wild

abstract public function getCredentialTypeName()
Inherited

This method is not documented.
Return
wild

abstract public function getCredentialTypeDescription()
Inherited

This method is not documented.
Return
wild

abstract public function getSecretLabel()
Inherited

This method is not documented.
Return
wild

public function newSecretControl()
Inherited

This method is not documented.
Return
wild

public static function getAllTypes()
Inherited

This method is not documented.
Return
wild

public static function getAllCreateableTypes()
Inherited

This method is not documented.
Return
wild

public static function getAllProvidesTypes()
Inherited

This method is not documented.
Return
wild

public static function getTypeByConstant($constant)
Inherited

This method is not documented.
Parameters
$constant
Return
wild

public function isCreateable()
Inherited

PassphraseCredentialType

Can users create new credentials of this type?

Return
boolTrue if new credentials of this type can be created.

public function didInitializeNewCredential($actor, $credential)
Inherited

This method is not documented.
Parameters
PhabricatorUser$actor
PassphraseCredential$credential
Return
wild

public function hasPublicKey()

This method is not documented.
Return
wild

public function getPublicKey($viewer, $credential)

This method is not documented.
Parameters
PhabricatorUser$viewer
PassphraseCredential$credential
Return
wild

public function shouldShowPasswordField()
Inherited

PassphraseCredentialType

Return true to show an additional "Password" field. This is used by SSH credentials to strip passwords off private keys.

Return
boolTrue if a password field should be shown to the user.

public function getPasswordLabel()
Inherited

PassphraseCredentialType

Return the label for the password field, if one is shown.

Return
stringHuman-readable field label.

public function shouldRequireUsername()
Inherited

This method is not documented.
Return
wild