Code example for DSAParameterSpec

Methods: getGgetPgetQ

0
  { 
    if (! (spec instanceof DSAParameterSpec))
      throw new InvalidParameterSpecException("Wrong AlgorithmParameterSpec type: "
                                              + spec.getClass().getName());
    DSAParameterSpec dsaSpec = (DSAParameterSpec) spec;
    p = dsaSpec.getP();
    q = dsaSpec.getQ();
    g = dsaSpec.getG();
  } 
 
  /** 
   * Decodes the set of DSS parameters as per RFC-2459; i.e. the DER-encoded 
   * form of the following ASN.1 construct: 
   * 
   * <pre> 
   *   DssParams ::= SEQUENCE { 
   *     p   INTEGER, 
   *     q   INTEGER, 
   *     g   INTEGER 
   *   } 
Connect your IDE to all the code out there  Get Codota for Java