Package freenet.keys

Examples of freenet.keys.SSKVerifyException


  @Override
  public SSKBlock construct(byte[] data, byte[] headers,
      byte[] routingKey, byte[] fullKey,
      boolean canReadClientCache, boolean canReadSlashdotCache, BlockMetadata meta, DSAPublicKey knownPublicKey)
  throws SSKVerifyException {
    if(data == null || headers == null) throw new SSKVerifyException("Need data and headers");
    if(fullKey == null) throw new SSKVerifyException("Need full key to reconstruct an SSK");
    NodeSSK key;
    key = NodeSSK.construct(fullKey);
    if(knownPublicKey != null)
      key.setPubKey(knownPublicKey);
    else if(!key.grabPubkey(pubkeyCache, canReadClientCache, canReadSlashdotCache, meta))
      throw new SSKVerifyException("No pubkey found");
    SSKBlock block = new SSKBlock(data, headers, key, false);
    return block;
  }
View Full Code Here

TOP

Related Classes of freenet.keys.SSKVerifyException

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.