Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21401589
PassphraseCredentialTypeSSHPrivateKeyFile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
PassphraseCredentialTypeSSHPrivateKeyFile.php
View Options
<?php
final
class
PassphraseCredentialTypeSSHPrivateKeyFile
extends
PassphraseCredentialTypeSSHPrivateKey
{
const
CREDENTIAL_TYPE
=
'ssh-key-file'
;
public
function
getCredentialType
()
{
return
self
::
CREDENTIAL_TYPE
;
}
public
function
getCredentialTypeName
()
{
return
pht
(
'SSH Private Key File'
);
}
public
function
getCredentialTypeDescription
()
{
return
pht
(
'Store the path on disk to an SSH private key.'
);
}
public
function
getSecretLabel
()
{
return
pht
(
'Path On Disk'
);
}
public
function
newSecretControl
()
{
return
new
AphrontFormTextControl
();
}
public
function
isCreateable
()
{
// This credential type exists to support historic repository configuration.
// We don't support creating new credentials with this type, since it does
// not scale and managing passwords is much more difficult than if we have
// the key text.
return
false
;
}
public
function
hasPublicKey
()
{
// These have public keys, but they'd be cumbersome to extract.
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 3:52 AM (1 d, 13 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16401597
Default Alt Text
PassphraseCredentialTypeSSHPrivateKeyFile.php (1 KB)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment