Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2485237
KeyDeleteJob.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
817 B
Referenced Files
None
Subscribers
None
KeyDeleteJob.php
View Options
<?php
namespace
App\Jobs\PGP
;
use
App\Jobs\UserJob
;
/**
* Delete a GPG keypair for a user (or alias) from the DNS and Enigma storage.
*/
class
KeyDeleteJob
extends
UserJob
{
/**
* Create a new job instance.
*
* @param int $userId User identifier.
* @param string $userEmail User email address of the key
*
* @return void
*/
public
function
__construct
(
int
$userId
,
string
$userEmail
)
{
$this
->
userId
=
$userId
;
$this
->
userEmail
=
$userEmail
;
}
/**
* Execute the job.
*
* @return void
*
* @throws \Exception
*/
public
function
handle
()
{
$user
=
$this
->
getUser
();
if
(!
$user
)
{
return
;
}
\App\Backends\PGP
::
keyDelete
(
$user
,
$this
->
userEmail
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 21, 7:19 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
387444
Default Alt Text
KeyDeleteJob.php (817 B)
Attached To
Mode
R2 kolab
Attached
Detach File
Event Timeline
Log In to Comment