/** * Get the Diffie-Hellman public key. * This is the value passed in the <b>openid.dh_consumer_public</b> * association request parameter and the value passed in the * <b>openid.dh_server_public</b> association response parameter. * * @return The base 64 encoded two's-complement representation of the * public key: <code>base64(btwoc(g ^ x mod p))</code> */ public String getPublicKey() { DHPublicKey publicKey = (DHPublicKey) _keyPair.getPublic(); return publicKeyToString(publicKey); }
/** * Get the Diffie-Hellman public key. * This is the value passed in the <b>openid.dh_consumer_public</b> * association request parameter and the value passed in the * <b>openid.dh_server_public</b> association response parameter. * * @return The base 64 encoded two's-complement representation of the * public key: <code>base64(btwoc(g ^ x mod p))</code> */ public String getPublicKey() { DHPublicKey publicKey = (DHPublicKey) _keyPair.getPublic(); return publicKeyToString(publicKey); }
/** * Get the Diffie-Hellman public key. * This is the value passed in the <b>openid.dh_consumer_public</b> * association request parameter and the value passed in the * <b>openid.dh_server_public</b> association response parameter. * * @return The base 64 encoded two's-complement representation of the * public key: <code>base64(btwoc(g ^ x mod p))</code> */ public String getPublicKey() { DHPublicKey publicKey = (DHPublicKey) _keyPair.getPublic(); return publicKeyToString(publicKey); }
/** * Get the Diffie-Hellman public key. * This is the value passed in the <b>openid.dh_consumer_public</b> * association request parameter and the value passed in the * <b>openid.dh_server_public</b> association response parameter. * * @return The base 64 encoded two's-complement representation of the * public key: <code>base64(btwoc(g ^ x mod p))</code> */ public String getPublicKey() { DHPublicKey publicKey = (DHPublicKey) _keyPair.getPublic(); return publicKeyToString(publicKey); }
/** * Get the Diffie-Hellman public key. * This is the value passed in the <b>openid.dh_consumer_public</b> * association request parameter and the value passed in the * <b>openid.dh_server_public</b> association response parameter. * * @return The base 64 encoded two's-complement representation of the * public key: <code>base64(btwoc(g ^ x mod p))</code> */ public String getPublicKey() { DHPublicKey publicKey = (DHPublicKey) _keyPair.getPublic(); return publicKeyToString(publicKey); }