Package net.tomp2p.connection

Examples of net.tomp2p.connection.SignatureFactory.verify()


   
    // sign the data
    SignatureCodec signature = signatureFactory.sign(protectionKey.getPrivate(), testData.buffer());
   
    // verify the data with the signature
    boolean isVerified = signatureFactory.verify(protectionKey.getPublic(), testData.buffer(), signature);
   
    // check if verifying worked
    Assert.assertTrue(isVerified);
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.