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