package yushijinhun.authlibagent.service;

import java.security.interfaces.RSAPrivateKey;

public interface SignatureService {

	byte[] sign(byte[] data) throws SignatureException;

	void setSignatureKey(RSAPrivateKey key);

}

@@ -126,60 +126,290 @@
 %7B%0A%0A%09
-byte%5B%5D sign(byte%5B%5D data) throws SignatureException;%0A
+/**%0A%09 * %E4%B8%BA%E7%BB%99%E5%AE%9A%E6%95%B0%E6%8D%AE%E4%BD%BF%E7%94%A8 SHA1withRSA (UTF-8) %E7%AE%97%E6%B3%95%E7%AD%BE%E5%90%8D%E3%80%82%0A%09 * %0A%09 * @param data %E8%A6%81%E7%AD%BE%E5%90%8D%E7%9A%84%E6%95%B0%E6%8D%AE%0A%09 * @return %E7%AD%BE%E5%90%8D%E5%80%BC%0A%09 * @throws SignatureException %E5%A6%82%E6%9E%9C%E5%87%BA%E7%8E%B0%E7%AD%BE%E5%90%8D%E6%97%B6%E5%87%BA%E7%8E%B0%E5%BC%82%E5%B8%B8%0A%09 */%0A%09byte%5B%5D sign(byte%5B%5D data) throws SignatureException;%0A%0A%09/**%0A%09 * %E6%9B%B4%E6%8D%A2%E7%AD%BE%E5%90%8D%E6%89%80%E7%94%A8%E7%9A%84%E5%AF%86%E9%92%A5%E3%80%82%0A%09 * %3Cp%3E%0A%09 * key%E5%8F%AF%E4%BB%A5%E4%B8%BAnull%EF%BC%8C%E4%BD%86%E6%89%80%E6%9C%89%E8%A6%81%E6%B1%82%E6%95%B0%E5%AD%97%E7%AD%BE%E5%90%8D%E7%9A%84%E4%B8%9A%E5%8A%A1%E9%83%BD%E5%B0%86%E5%A4%B1%E8%B4%A5%E3%80%82%0A%09 * %0A%09 * @param key %E7%94%A8%E4%BA%8E%E7%AD%BE%E5%90%8D%E7%9A%84%E6%96%B0%E5%AF%86%E9%92%A5%0A%09 */
 %0A%09vo

add javadoc for SignatureService