mirror of
https://github.com/pgpainless/pgpainless.git
synced 2025-09-09 18:29:39 +02:00
Fix more spotless formatting errors
This commit is contained in:
parent
7af4689bb7
commit
853de42bc2
1 changed files with 4 additions and 8 deletions
|
@ -15,13 +15,9 @@ import org.bouncycastle.openpgp.api.OpenPGPKey.OpenPGPPrivateKey
|
|||
* as the component keys fingerprint.
|
||||
*/
|
||||
class SubkeyIdentifier(
|
||||
/**
|
||||
* Fingerprint of the certificate.
|
||||
*/
|
||||
/** Fingerprint of the certificate. */
|
||||
val certificateFingerprint: OpenPgpFingerprint,
|
||||
/**
|
||||
* Fingerprint of the target component key.
|
||||
*/
|
||||
/** Fingerprint of the target component key. */
|
||||
val componentKeyFingerprint: OpenPgpFingerprint
|
||||
) {
|
||||
|
||||
|
@ -134,8 +130,8 @@ class SubkeyIdentifier(
|
|||
val isPrimaryKey = certificateIdentifier.matches(componentKeyIdentifier)
|
||||
|
||||
/**
|
||||
* Return true, if the provided [fingerprint] matches either the [certificateFingerprint]
|
||||
* or [componentKeyFingerprint].
|
||||
* Return true, if the provided [fingerprint] matches either the [certificateFingerprint] or
|
||||
* [componentKeyFingerprint].
|
||||
*/
|
||||
fun matches(fingerprint: OpenPgpFingerprint) =
|
||||
certificateFingerprint == fingerprint || componentKeyFingerprint == fingerprint
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue