|
|
@@ -22,6 +22,16 @@ import java.security.spec.X509EncodedKeySpec; |
|
|
|
|
|
|
|
class RSASignatureService extends AbstractSignatureService { |
|
|
|
|
|
|
|
private RSASignatureService() { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public static AbstractSignatureService getInstance(SignatureConfig signatureConfig) throws GeneralSecurityException { |
|
|
|
RSASignatureService result = new RSASignatureService(); |
|
|
|
result.init(signatureConfig); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public String signatureByPriKey(String content) throws GeneralSecurityException { |
|
|
|
if (signatureContext == null) { |
|
|
|