Android Signature Create createSignatureInstance(String sigName, String provider)

Here you can find the source of createSignatureInstance(String sigName, String provider)

Description

create Signature Instance

License

LGPL

Declaration

static Signature createSignatureInstance(String sigName, String provider)
            throws NoSuchAlgorithmException, NoSuchProviderException 

Method Source Code

//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);
    }
}