Package com.aelitis.azureus.core.security

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


       
        buffer.putInt( value );
      }
    }catch( Throwable e ){
     
      throw( new CryptoManagerException( "Failed to put int", e ));
    }
  }
View Full Code Here


    try{
      buffer.put( value );
     
    }catch( Throwable e ){
     
      throw( new CryptoManagerException( "Failed to put byte[]", e ));
    }
  }
View Full Code Here

     
      return( sig.sign());
     
    }catch( Throwable e ){
     
      throw( new CryptoManagerException( "Signature failed", e ));
    }
  }
View Full Code Here

     
      return( sig.verify( signature ));
     
    }catch( Throwable e ){
     
      throw( new CryptoManagerException( "Signature failed", e ));
    }
  }
View Full Code Here

     
      throw( e );
     
    }catch( Throwable e){
     
      throw( new CryptoManagerException( "Encrypt failed", e ));
    }
  }
View Full Code Here

     
      throw( e );
     
    }catch( Throwable e){
     
      throw( new CryptoManagerException( "Decrypt failed", e ));
    }
  }
View Full Code Here

   
    byte[]  pk = COConfigurationManager.getByteParameter( CONFIG_PREFIX + "privatekey", null );

    if ( pk == null ){
     
      throw( new CryptoManagerException( "Private key unavailable" ));
    }
   
    int  pw_type = getCurrentPasswordType();
   
    byte[] res = new byte[pk.length+1];
View Full Code Here

           
            throw( e );
           
          }catch( Throwable e ){
           
            throw( new CryptoManagerException( "Password incorrect", e ));
           
          }finally{
           
            if ( !ok ){
                           
              manager.clearPassword( CryptoManager.HANDLER_ECC, CryptoManagerPasswordHandler.HANDLER_TYPE_ALL );
             
              lock_change = true;
             
              use_method_private_key  = null;
            }
          }
        }
     
        if ( use_method_private_key == null ){
         
          throw( new CryptoManagerException( "Failed to get private key" ));
        }
       
        return( use_method_private_key );
      }
    }finally{
View Full Code Here

     
      if ( !create_new ){
       
        if ( use_method_public_key == null ){
         
          throw( new CryptoManagerException( "Failed to get public key" ));
        }
       
        return( use_method_public_key );
      }
    }
View Full Code Here

     
      synchronized( this ){
       
        if ( use_method_private_key == null ){
         
          throw( new CryptoManagerException( "Private key not available" ));
        }
       
        byte[]  priv_raw = CryptoECCUtils.keyToRawdata( use_method_private_key );
       
        byte[]  priv_enc = manager.encryptWithPBE( priv_raw, password_details.getPassword());
View Full Code Here

TOP

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

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.