Class CertifyCertificate


  • public class CertifyCertificate
    extends java.lang.Object
    API for creating certifications and delegations (Signatures) on keys. This API can be used to sign another persons OpenPGP key. A certification over a user-id is thereby used to attest, that the user believes that the user-id really belongs to the owner of the certificate. A delegation over a key can be used to delegate trust by marking the certificate as a trusted introducer.
    • Constructor Detail

      • CertifyCertificate

        public CertifyCertificate()
    • Method Detail

      • userIdOnCertificate

        public CertifyCertificate.CertificationOnUserId userIdOnCertificate​(@Nonnull
                                                                            java.lang.String userid,
                                                                            @Nonnull
                                                                            org.bouncycastle.openpgp.PGPPublicKeyRing certificate,
                                                                            @Nonnull
                                                                            CertificationType certificationType)
        Create a certification of the given CertificationType over a User-Id.
        Parameters:
        userid - user-id to certify
        certificate - certificate
        certificationType - type of signature
        Returns:
        API
      • certificate

        public CertifyCertificate.DelegationOnCertificate certificate​(@Nonnull
                                                                      org.bouncycastle.openpgp.PGPPublicKeyRing certificate,
                                                                      @Nullable
                                                                      Trustworthiness trustworthiness)
        Create a delegation (direct key signature) containing a TrustSignature packet over a certificate. This can be used to mark a certificate as a trusted introducer.
        Parameters:
        certificate - certificate
        trustworthiness - trustworthiness of the certificate
        Returns:
        API