diff options
author | Aaron M. Renn <arenn@urbanophile.com> | 1998-08-21 02:09:40 +0000 |
---|---|---|
committer | Aaron M. Renn <arenn@urbanophile.com> | 1998-08-21 02:09:40 +0000 |
commit | 1516d54906fd413c02328d8bb21a6af38dfd4d07 (patch) | |
tree | 370168d12ca0ba1fa7ac740e908d535532060b0f /java/security/interfaces/DSAParams.java | |
parent | 1117ceecf001905a0933aea53d70d685662bce52 (diff) | |
download | classpath-1516d54906fd413c02328d8bb21a6af38dfd4d07.tar.gz |
Initial Checkin
Diffstat (limited to 'java/security/interfaces/DSAParams.java')
-rw-r--r-- | java/security/interfaces/DSAParams.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/java/security/interfaces/DSAParams.java b/java/security/interfaces/DSAParams.java new file mode 100644 index 000000000..13edd2062 --- /dev/null +++ b/java/security/interfaces/DSAParams.java @@ -0,0 +1,66 @@ +/************************************************************************* +/* DSAParams.java -- Digital Signature Algorithm parameter access +/* +/* Copyright (c) 1998 Free Software Foundation, Inc. +/* Written by Aaron M. Renn (arenn@urbanophile.com) +/* +/* This library is free software; you can redistribute it and/or modify +/* it under the terms of the GNU Library General Public License as published +/* by the Free Software Foundation, either version 2 of the License, or +/* (at your option) any later verion. +/* +/* This library is distributed in the hope that it will be useful, but +/* WITHOUT ANY WARRANTY; without even the implied warranty of +/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +/* GNU Library General Public License for more details. +/* +/* You should have received a copy of the GNU Library General Public License +/* along with this library; if not, write to the Free Software Foundation +/* Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA +/*************************************************************************/ + +package java.security.interfaces; + +import java.math.BigInteger; + +/** + * This interface allows the Digital Signature Algorithm (DSA) parameters + * to be queried. + * + * @version 0.0 + * + * @author Aaron M. Renn (arenn@urbanophile.com) + */ +public interface DSAParams +{ + +/** + * Returns the base, or 'g' value + * + * @return The DSA base value + */ +public abstract BigInteger +getG(); + +/*************************************************************************/ + +/** + * Returns the prime, or 'p' value + * + * @return The DSA prime value + */ +public abstract BigInteger +getP(); + +/*************************************************************************/ + +/** + * Returns the subprime, or 'q' value + * + * @return The DSA subprime value + */ +public abstract BigInteger +getQ(); + +} // interface DSAParams + |