Here you can find the source of createSignatureInstance(String sigName, String provider)
static Signature createSignatureInstance(String sigName, String provider) throws NoSuchAlgorithmException, NoSuchProviderException
//package com.java2s; //License from project: LGPL import java.security.NoSuchAlgorithmException; import java.security.NoSuchProviderException; import java.security.Signature; public class Main { static Signature createSignatureInstance(String sigName, String provider) throws NoSuchAlgorithmException, NoSuchProviderException { if (provider == null) { return Signature.getInstance(sigName); }//from w ww.j a v a2 s . co m return Signature.getInstance(sigName, provider); } }