Package com.aelitis.azureus.core.security

Examples of com.aelitis.azureus.core.security.CryptoManager


    throws PairingException
  {
    try{
      Map<String, Object> request = new HashMap<String, Object>();

      CryptoManager cman = CryptoManagerFactory.getSingleton();

      String azid = Base32.encode( cman.getSecureID());

      payload.put( "_azid", azid );

      try{
        String pk = Base32.encode( cman.getECCHandler().getPublicKey( "pairing" ));

        payload.put( "_pk", pk );
       
      }catch( Throwable e ){ 
      }
     
      request.put( "req", payload );
     
      String request_str = Base32.encode( BEncoder.encode( request ));
     
      String  sig = null;
     
      try{
        sig = Base32.encode( cman.getECCHandler().sign( request_str.getBytes( "UTF-8" ), "pairing" ));
       
      }catch( Throwable e ){
      }
     
      String other_params =
View Full Code Here

TOP

Related Classes of com.aelitis.azureus.core.security.CryptoManager

Copyright © 2018 www.massapicom. 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.