Class SubscriptionBodyImpl

java.lang.Object
com.biglybt.core.subs.impl.SubscriptionBodyImpl

public class SubscriptionBodyImpl extends Object
  • Field Details

    • SIMPLE_ID_LENGTH

      private static final int SIMPLE_ID_LENGTH
      See Also:
    • manager

      private SubscriptionManagerImpl manager
    • name

      private String name
    • is_public

      private boolean is_public
    • is_anonymous

      private Boolean is_anonymous
    • public_key

      private byte[] public_key
    • version

      private int version
    • az_version

      private int az_version
    • json

      private String json
    • singleton_details

      private Map singleton_details
    • hash

      private byte[] hash
    • sig

      private byte[] sig
    • sig_data_size

      private int sig_data_size
    • map

      private Map map
  • Constructor Details

  • Method Details

    • encode

      protected static byte[] encode(byte[] hash, int version, int size)
    • sign

      protected static byte[] sign(byte[] private_key, byte[] hash, int version, int size) throws Exception
      Throws:
      Exception
    • verify

      protected static boolean verify(byte[] public_key, byte[] hash, int version, int size, byte[] sig)
    • deriveShortID

      protected static byte[] deriveShortID(byte[] public_key, Map singleton_details)
    • deriveSingletonShortID

      protected static byte[] deriveSingletonShortID(Map singleton_details)
    • load

      protected void load(Map _map, boolean _verify) throws IOException
      Throws:
      IOException
    • updateDetails

      protected void updateDetails(SubscriptionImpl subs, Map details) throws IOException
      Throws:
      IOException
    • getName

      protected String getName()
    • getPublicKey

      protected byte[] getPublicKey()
    • getShortID

      public byte[] getShortID()
    • isPublic

      protected boolean isPublic()
    • isAnonymous

      protected boolean isAnonymous()
    • getJSON

      protected String getJSON()
    • getSingletonDetails

      protected Map getSingletonDetails()
    • setJSON

      protected void setJSON(String _json)
    • getVersion

      protected int getVersion()
    • getAZVersion

      protected int getAZVersion()
    • getHash

      protected byte[] getHash()
    • getSig

      protected byte[] getSig()
    • getSigDataSize

      protected int getSigDataSize()
    • writeVuzeFile

      protected void writeVuzeFile(SubscriptionImpl subs) throws SubscriptionException
      Throws:
      SubscriptionException
    • rethrow

      protected void rethrow(Throwable e) throws SubscriptionException
      Throws:
      SubscriptionException