Code example for DHParameterSpec

Methods: getG, getP

0
            return keyGen.generateKeyPair();
        } 
        catch (GeneralSecurityException e)
        { 
            _log.error("Cannot generate key pair for DHParameterSpec, base: "
                    + dhSpec.getG() + ", modulus: "  + dhSpec.getP() );
 
            return null; 
        } 
    } 
 
    public AssociationSessionType getType() 
    { 
        return _type;
    } 
 
    /** 
     * Gets the modulus for the Diffie-Hellman key echange. 
     * This is the value passed in the <b>openid.dh_modulus</b> association 
     * request parameter. 
     *