You are on page 1of 2

https://stackoverflow.

com/questions/11333564/video-capturinglive-video-streaming-
through-java
https://github.com/fyhertz/libstreaming-examples
https://stackoverflow.com/questions/12137119/implement-video-streaming-in-java-me-
using-rtsp
https://stackoverflow.com/questions/28023336/video-streaming-on-network-using-java-
sockets
https://github.com/afsalashyana/Java-Tutorial-Codes/tree/master/WebcamTutorial
https://github.com/sarxos/webcam-capture
https://razorpay.com/docs/api/order-api-ref/

Integratin steps

https://razorpay.com/docs/payment-gateway/orders/integration/

check out web integration

https://razorpay.com/docs/checkout/web-integration/

to generate hexdesvalue
---------------------------

public class Signature


{
private static final String HMAC_SHA256_ALGORITHM = "HmacSHA256";

/**
* Computes RFC 2104-compliant HMAC signature.
* * @param data
* The data to be signed.
* @param key
* The signing key.
* @return
* The Base64-encoded RFC 2104-compliant HMAC signature.
* @throws
* java.security.SignatureException when signature generation fails
*/
public static String calculateRFC2104HMAC(String data, String secret)
throws java.security.SignatureException
{
String result;
try {

// get an hmac_sha256 key from the raw secret bytes


SecretKeySpec signingKey = new SecretKeySpec(secret.getBytes(),
HMAC_SHA256_ALGORITHM);

// get an hmac_sha256 Mac instance and initialize with the signing key
Mac mac = Mac.getInstance(HMAC_SHA256_ALGORITHM);
mac.init(signingKey);

// compute the hmac on input data bytes


byte[] rawHmac = mac.doFinal(data.getBytes());
// base64-encode the hmac
result = DatatypeConverter.printHexBinary(rawHmac).toLowerCase();

} catch (Exception e) {
throw new SignatureException("Failed to generate HMAC : " +
e.getMessage());
}
return result;
}
}
**********************************************
paytm example link
*************************************************
https://github.com/Paytm-Payments/Paytm_Web_Sample_Kit_Java/tree/master/Sample
%20Kit

***********************************************************************************
***********************
maven plugin custom lib
***********************************************************************************
*********************
<dependency>
<groupId>com.mylib</groupId>
<artifactId>mylib-core</artifactId>
<version>0.0.1</version>
</dependency>
then, add maven-install-plugin

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
<executions>
<execution>
<id>install-external</id>
<phase>clean</phase>
<configuration>
<file>${basedir}/lib/mylib-core-0.0.1.jar</file>
<repositoryLayout>default</repositoryLayout>
<groupId>com.mylib</groupId>
<artifactId>mylib-core</artifactId>
<version>0.0.1</version>
<packaging>jar</packaging>
<generatePom>true</generatePom>
</configuration>
<goals>
<goal>install-file</goal>
</goals>
</execution>
</executions>
</plugin>
***********************************************************************************
****************************

You might also like