2022-07-04 19:38:01 +02:00
|
|
|
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org>
|
|
|
|
//
|
|
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2022-08-12 14:10:09 +02:00
|
|
|
package pgp.certificate_store.certificate;
|
2022-07-04 19:38:01 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* OpenPGP key (secret key).
|
|
|
|
*/
|
2022-08-08 13:50:59 +02:00
|
|
|
public abstract class Key implements KeyMaterial {
|
2022-07-04 19:38:01 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Return the certificate part of this OpenPGP key.
|
|
|
|
*
|
|
|
|
* @return OpenPGP certificate
|
|
|
|
*/
|
|
|
|
public abstract Certificate getCertificate();
|
|
|
|
|
2022-08-09 17:50:15 +02:00
|
|
|
@Override
|
|
|
|
public Certificate asCertificate() {
|
|
|
|
return getCertificate();
|
|
|
|
}
|
2022-07-04 19:38:01 +02:00
|
|
|
|
|
|
|
}
|