public synchronized Service getService (String type, String algorithm)

Get the service describing this Provider's implementation of the specified type of this algorithm or alias. If no such implementation exists, this method returns null. If there are two matching services, one added to this provider using putService() and one added via put(), the service added via putService() is returned.

Parameters:
type    the type of service requested (for example, MessageDigest)
algorithm    the case insensitive algorithm name (or alternate alias) of the service requested (for example, SHA-1)

Returns:  the service describing this Provider's matching service or null if no such service exists

Exceptions:
NullPointerException    if type or algorithm is null

Since:  1.5