Package freenet.support

Examples of freenet.support.IllegalBase64Exception


  }

  public static DSAPrivateKey create(SimpleFieldSet fs, DSAGroup group) throws IllegalBase64Exception {
    NativeBigInteger y = new NativeBigInteger(1, Base64.decode(fs.get("x")));
    if(y.bitLength() > 512)
      throw new IllegalBase64Exception("Probably a pubkey");
    return new DSAPrivateKey(y, group);
  }
View Full Code Here

TOP

Related Classes of freenet.support.IllegalBase64Exception

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.