public static URL getVerificationURL(
            ExpiringCode expiringCode,
            IdentityZone currentIdentityZone) {
        String url = "";
        try {
            url = UaaUrlUtils.getUaaUrl("/verify_user", true, currentIdentityZone);

            if (expiringCode != null) {
                url += "?code=" + expiringCode.getCode();
            }

            return new URL(url);
        } catch (MalformedURLException mfue) {
            logger.error(String.format("Unexpected error creating user verification URL from %s", url), mfue);
        }
        throw new IllegalStateException();
    }
public static URL getVerificationURL ( ExpiringCode expiringCode , IdentityZone currentIdentityZone ) { String url = "" ; try { url = UaaUrlUtils . getUaaUrl ( "/verify_user" , true , currentIdentityZone ) ; if ( expiringCode != null ) { url += "?code=" + expiringCode . getCode ( ) ; } return new URL ( url ) ; } catch ( MalformedURLException mfue ) { logger . error ( String . format ( "Unexpected error creating user verification URL from %s" , url ) , mfue ) ; } throw new IllegalStateException ( ) ; }
Returns a verification URL that may be sent to a user.

@param expiringCode        the expiring code to include on the URL, may be null
@param currentIdentityZone the current IdentityZone
@return the verification URL