com.aelitis.azureus.core.subs.impl
Class SubscriptionBodyImpl
java.lang.Object
com.aelitis.azureus.core.subs.impl.SubscriptionBodyImpl
public class SubscriptionBodyImpl
- extends Object
Constructor Summary |
protected |
SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
Map _map)
|
protected |
SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
String _name,
boolean _is_public,
boolean _is_anonymous,
String _json_content,
byte[] _public_key,
int _version,
int _az_version,
Map _singleton_details)
|
protected |
SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
SubscriptionImpl _subs)
|
Method Summary |
protected static byte[] |
deriveShortID(byte[] public_key,
Map singleton_details)
|
protected static byte[] |
deriveSingletonShortID(Map singleton_details)
|
protected static byte[] |
encode(byte[] hash,
int version,
int size)
|
protected int |
getAZVersion()
|
protected byte[] |
getHash()
|
protected String |
getJSON()
|
protected String |
getName()
|
protected byte[] |
getPublicKey()
|
byte[] |
getShortID()
|
protected byte[] |
getSig()
|
protected int |
getSigDataSize()
|
protected Map |
getSingletonDetails()
|
protected int |
getVersion()
|
protected boolean |
isAnonymous()
|
protected boolean |
isPublic()
|
protected void |
load(Map _map,
boolean _verify)
|
protected void |
rethrow(Throwable e)
|
protected void |
setJSON(String _json)
|
protected static byte[] |
sign(byte[] private_key,
byte[] hash,
int version,
int size)
|
protected void |
updateDetails(SubscriptionImpl subs,
Map details)
|
protected static boolean |
verify(byte[] public_key,
byte[] hash,
int version,
int size,
byte[] sig)
|
protected void |
writeVuzeFile(SubscriptionImpl subs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubscriptionBodyImpl
protected SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
SubscriptionImpl _subs)
throws SubscriptionException
- Throws:
SubscriptionException
SubscriptionBodyImpl
protected SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
Map _map)
throws IOException
- Throws:
IOException
SubscriptionBodyImpl
protected SubscriptionBodyImpl(SubscriptionManagerImpl _manager,
String _name,
boolean _is_public,
boolean _is_anonymous,
String _json_content,
byte[] _public_key,
int _version,
int _az_version,
Map _singleton_details)
throws IOException
- Throws:
IOException
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