1. /*
  2. * @(#)DSAParams.java 1.17 00/02/02
  3. *
  4. * Copyright 1996-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.security.interfaces;
  11. import java.math.BigInteger;
  12. /**
  13. * Interface to a DSA-specific set of key parameters, which defines a
  14. * DSA <em>key family</em>. DSA (Digital Signature Algorithm) is defined
  15. * in NIST's FIPS-186.
  16. *
  17. * @see DSAKey
  18. * @see java.security.Key
  19. * @see java.security.Signature
  20. *
  21. * @version 1.17 00/02/02
  22. * @author Benjamin Renaud
  23. * @author Josh Bloch
  24. */
  25. public interface DSAParams {
  26. /**
  27. * Returns the prime, <code>p</code>.
  28. *
  29. * @return the prime, <code>p</code>.
  30. */
  31. public BigInteger getP();
  32. /**
  33. * Returns the subprime, <code>q</code>.
  34. *
  35. * @return the subprime, <code>q</code>.
  36. */
  37. public BigInteger getQ();
  38. /**
  39. * Returns the base, <code>g</code>.
  40. *
  41. * @return the base, <code>g</code>.
  42. */
  43. public BigInteger getG();
  44. }