Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

BouncyCastleGpgKey.java 867B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /*
  2. * Copyright (C) 2018, Salesforce. and others
  3. *
  4. * This program and the accompanying materials are made available under the
  5. * terms of the Eclipse Distribution License v. 1.0 which is available at
  6. * https://www.eclipse.org/org/documents/edl-v10.php.
  7. *
  8. * SPDX-License-Identifier: BSD-3-Clause
  9. */
  10. package org.eclipse.jgit.gpg.bc.internal;
  11. import java.nio.file.Path;
  12. import org.bouncycastle.openpgp.PGPSecretKey;
  13. /**
  14. * Container which holds a {@link #getSecretKey()} together with the
  15. * {@link #getOrigin() path it was loaded from}.
  16. */
  17. class BouncyCastleGpgKey {
  18. private PGPSecretKey secretKey;
  19. private Path origin;
  20. public BouncyCastleGpgKey(PGPSecretKey secretKey, Path origin) {
  21. this.secretKey = secretKey;
  22. this.origin = origin;
  23. }
  24. public PGPSecretKey getSecretKey() {
  25. return secretKey;
  26. }
  27. public Path getOrigin() {
  28. return origin;
  29. }
  30. }