Example usage for org.apache.http.impl.auth UnsupportedDigestAlgorithmException UnsupportedDigestAlgorithmException

List of usage examples for org.apache.http.impl.auth UnsupportedDigestAlgorithmException UnsupportedDigestAlgorithmException

Introduction

In this page you can find the example usage for org.apache.http.impl.auth UnsupportedDigestAlgorithmException UnsupportedDigestAlgorithmException.

Prototype

public UnsupportedDigestAlgorithmException(final String message) 

Source Link

Document

Creates a new UnsupportedAuthAlgoritmException with the specified message.

Usage

From source file:org.odk.collect.android.utilities.EnhancedDigestScheme.java

private static MessageDigest createMessageDigest(final String digAlg)
        throws UnsupportedDigestAlgorithmException {
    try {//from   ww w  .ja v  a2 s .c  o  m
        return MessageDigest.getInstance(digAlg);
    } catch (Exception e) {
        throw new UnsupportedDigestAlgorithmException(
                "Unsupported algorithm in HTTP Digest authentication: " + digAlg);
    }
}