Code example for DHParameterSpec

Methods: getG, getL, getP

0
    private void writeObject( 
        ObjectOutputStream  out)
        throws IOException 
    { 
        out.writeObject(this.getX());
        out.writeObject(dhSpec.getP());
        out.writeObject(dhSpec.getG());
        out.writeInt(dhSpec.getL());
    } 
 
    public void setBagAttribute( 
        DERObjectIdentifier oid,
        DEREncodable        attribute)
    { 
        pkcs12Attributes.put(oid, attribute);
        pkcs12Ordering.addElement(oid);
    } 
 
    public DEREncodable getBagAttribute( 
        DERObjectIdentifier oid)
    {